function n = RefractiveIndex(Energy, Material)

% Calculates the coeficients Delta and Beta of the Refractive Index
% -------------------------------------------------------------------------
% by Joan Vila, October 2010
%
% See: Vila-Comamala, J., Wojcik, M., Diaz, A., Guizar-Sicairos, M., Kewish, 
% C. M., Wang, S. & David, C. (2013). J. Synchrotron Rad. 20, 397-404.
%
% Modified by Kahraman Keskinbora to include other materials, between April 2012 - November 2021
%
% The input parameters are the photon energy and the material
%
% Materials:    'Au' for Gold
%               'Ir' for Iridium
%               'Ni' for Niquel
%               'Si' for Silicon    
%               'Di' for Diamond
%               'Ge' for Germanium
%               'SO' for Silicon Oxide
%               'AO' for Aluminum Oxide
%               'Pt' for Platinum
%               'TO' for Tantallum (V) Oxide
%               'FG' for FeGd 
%               'CF' for CoFeB
%
% The routine returns n = delta +i*beta

if(Material == 'Au')
RefractiveData =[30.  0.153792322  0.549643338
  30.4181843  0.170580178  0.54826504
  30.8421955  0.18453823  0.542276204
  31.2721214  0.19882378  0.535783827
  31.7080383  0.218878135  0.521806717
  32.150032  0.227999225  0.499722779
  32.5981827  0.230446294  0.481251299
  33.0525818  0.231495038  0.46591419
  33.5133171  0.232590765  0.451959014
  33.9804764  0.233223572  0.438420385
  34.4541473  0.233286321  0.42528668
  34.9344177  0.232778057  0.41253081
  35.4213829  0.231651664  0.400140703
  35.9151382  0.229945689  0.388121098
  36.4157791  0.227543131  0.376463592
  36.9233932  0.224330127  0.365784049
  37.4380875  0.220881969  0.356333166
  37.9599533  0.218079567  0.347669184
  38.4890938  0.215512767  0.339214474
  39.0256119  0.213026881  0.330966502
  39.5696068  0.210473791  0.322918206
  40.1211853  0.207736552  0.31531015
  40.6804543  0.205160603  0.30814749
  41.2475166  0.202887446  0.301286638
  41.8224831  0.200810343  0.294580132
  42.405468  0.198879361  0.288022012
  42.9965744  0.197136313  0.281609029
  43.5959282  0.195742771  0.275341004
  44.2036324  0.195055202  0.268816441
  44.8198051  0.194133967  0.26150161
  45.4445686  0.192560449  0.253799528
  46.0780411  0.190471604  0.246323436
  46.7203445  0.188117132  0.239056647
  47.3715973  0.185607553  0.231899455
  48.0319328  0.182662174  0.224799469
  48.7014732  0.179344505  0.21790497
  49.3803444  0.175494671  0.2112225
  50.0686798  0.170776099  0.205356091
  50.7666092  0.16579856  0.200726718
  51.4742699  0.161908358  0.197048634
  52.1917915  0.158622369  0.193437442
  52.9193192  0.155572042  0.189893827
  53.6569862  0.152562514  0.186414301
  54.4049339  0.149253324  0.183448583
  55.163311  0.146369472  0.181181431
  55.9322586  0.144289434  0.17935802
  56.7119217  0.142790094  0.177553311
  57.5024567  0.141782597  0.175766498
  58.3040123  0.141481057  0.17399767
  59.1167336  0.142287806  0.171703473
  59.9407921  0.142920256  0.168615609
  60.7763329  0.143349633  0.165284008
  61.6235237  0.143951774  0.162018299
  62.4825172  0.145256504  0.158437297
  63.3534927  0.147577286  0.153586403
  64.2366028  0.148184776  0.147411659
  65.1320343  0.148049772  0.141411006
  66.0399323  0.147272989  0.135144353
  66.960495  0.145865366  0.128998265
  67.8938904  0.143917337  0.123131841
  68.8402939  0.141474441  0.117532335
  69.7998886  0.138513744  0.112309888
  70.7728577  0.135268047  0.108203813
  71.7593994  0.132507592  0.104534507
  72.7596817  0.129904628  0.101002328
  73.7739182  0.12728563  0.097686246
  74.8022842  0.124816  0.0946622938
  75.844986  0.122639604  0.0918687209
  76.9022217  0.1207688  0.0891030878
  77.9741974  0.119298518  0.0861474872
  79.0611115  0.117417462  0.082799837
  80.1631851  0.115307204  0.0795816332
  81.2806168  0.112912454  0.0764887333
  82.4136276  0.109830536  0.0741740763
  83.5624237  0.107587419  0.0733647645
  84.7272415  0.107667647  0.0730995387
  85.9082947  0.108085461  0.0693679675
  87.1058121  0.107524775  0.0657591522
  88.320015  0.106351733  0.0618373714
  89.5511475  0.104730055  0.0580916107
  90.7994385  0.102873012  0.0545728505
  92.0651398  0.100834124  0.0511210896
  93.3484802  0.0985545516  0.047691185
  94.649704  0.0959815681  0.0445114784
  95.9690704  0.0931195468  0.0417903028
  97.3068314  0.0904534385  0.0394341275
  98.6632385  0.0879154503  0.0372235849
  100.038544  0.0854682401  0.035136953
  101.433029  0.0830886886  0.0331056342
  102.846954  0.0807276741  0.0311077721
  104.280579  0.0783212483  0.0291960426
  105.734192  0.0758877024  0.0274013989
  107.208076  0.0734095573  0.0257173777
  108.702492  0.0709269941  0.0242731795
  110.217751  0.0685524493  0.02298389
  111.754128  0.0662919804  0.0217852443
  113.311913  0.0641156137  0.0206491388
  114.891418  0.0619986914  0.019572312
  116.492943  0.0599303544  0.0185527559
  118.116798  0.0579094253  0.0176186245
  119.763275  0.0559628271  0.0167441145
  121.432716  0.054079093  0.0159148294
  123.125427  0.0522525422  0.0151265869
  124.841721  0.0504826419  0.014377404
  126.581955  0.0487850644  0.0136539815
  128.346436  0.0471810997  0.0129218185
  130.135513  0.0455195308  0.012118144
  131.949539  0.0437939987  0.0113645354
  133.788834  0.041984126  0.0107169459
  135.653778  0.0402425751  0.0102332551
  137.544724  0.0386097543  0.00984230079
  139.462021  0.0370549113  0.00946628023
  141.406052  0.0355489813  0.00910463184
  143.377167  0.0340639204  0.00875683315
  145.375778  0.0325561725  0.00850432552
  147.402222  0.0311487336  0.00832511578
  149.45694  0.0298261605  0.00816496089
  151.540268  0.0285612457  0.00800790731
  153.652664  0.027332278  0.00785387587
  155.794495  0.0261201765  0.00770644797
  157.966202  0.024890976  0.00758087402
  160.168167  0.0237331614  0.00758306822
  162.400818  0.0226457398  0.0075852205
  164.664597  0.0216095392  0.00758729735
  166.95993  0.0206059031  0.00758942543
  169.287262  0.0196010582  0.00761136273
  171.647034  0.0185959805  0.00768630067
  174.039703  0.0176807102  0.00783454068
  176.465729  0.0168476868  0.00798582938
  178.925552  0.0160657503  0.00813987758
  181.419678  0.015328181  0.0082968967
  183.948563  0.0146319931  0.00845856033
  186.512726  0.0139762908  0.00862525497
  189.112595  0.0133605553  0.00879628025
  191.748734  0.0127834072  0.00897083525
  194.4216  0.0122449482  0.00914862845
  197.131729  0.0117478585  0.00933009479
  199.879639  0.011300127  0.00951008126
  202.665863  0.0108857229  0.00967819896
  205.490906  0.0104991151  0.00984063093
  208.355347  0.0101442309  0.0100058243
  211.259705  0.00983429328  0.0101730516
  214.204544  0.00960165728  0.0103378296
  217.190445  0.00937836431  0.010398523
  220.217957  0.00914372224  0.0104578603
  223.287674  0.00891437847  0.0105174528
  226.400192  0.00869888254  0.0105774095
  229.556091  0.0085045211  0.0106377676
  232.755981  0.00833708141  0.010690975
  236.000458  0.00819415599  0.0107118189
  239.290176  0.00804730039  0.0107149016
  242.625763  0.00790201966  0.0107178437
  246.007828  0.00776735554  0.0107208434
  249.437057  0.00765493046  0.0107238842
  252.914062  0.00756024383  0.0107102022
  256.439545  0.00746934908  0.0106698908
  260.01416  0.0073741544  0.0106264735
  263.638641  0.00728395255  0.0105832173
  267.313599  0.00720431702  0.0105401669
  271.039825  0.00714256288  0.0104972851
  274.817963  0.00710585155  0.0104314806
  278.648773  0.00707190577  0.0103362892
  282.53299  0.00702055683  0.0102237668
  286.471375  0.00695625274  0.0101124672
  290.4646  0.00688985316  0.0100023467
  294.513519  0.00682378747  0.00989349373
  298.618896  0.00675969105  0.00978577975
  302.781494  0.00669921655  0.00967924669
  307.002106  0.00664595282  0.00957387686
  311.281525  0.00660003349  0.00946265459
  315.620605  0.00655633025  0.00933752954
  320.020203  0.00650693523  0.00920916535
  324.48111  0.00645377673  0.00908256043
  329.004181  0.0064013158  0.00895768218
  333.590363  0.0063506458  0.00883454084
  338.240417  0.00630307151  0.0087131029
  342.955322  0.00626032241  0.00859331153
  347.735901  0.00622663321  0.00847493205
  352.58316  0.00620846217  0.00835503452
  357.497986  0.0061843521  0.00819594227
  362.481323  0.00614811806  0.00803989172
  367.534119  0.00610443251  0.00788680371
  372.657349  0.00605684752  0.00773663446
  377.85199  0.00600741245  0.00758933509
  383.119019  0.00595727144  0.00744484412
  388.459473  0.00590748526  0.00730309589
  393.87439  0.00585963018  0.00716403546
  399.364807  0.00581881823  0.00702761998
  404.931732  0.00578210317  0.0068792766
  410.576233  0.00573971821  0.00672452012
  416.299469  0.00568928057  0.00656992523
  422.102448  0.0056332266  0.00641887123
  427.986359  0.00557476468  0.00627130037
  433.95224  0.0055147917  0.0061271172
  440.001282  0.00545417937  0.0059862379
  446.134674  0.00539517449  0.00584861869
  452.353577  0.00533773564  0.00571049517
  458.659119  0.00527821016  0.00557122659
  465.052582  0.00521504972  0.00543288933
  471.535156  0.00514950184  0.00529799471
  478.108093  0.00508261193  0.00516645284
  484.772644  0.00501487544  0.00503815711
  491.530151  0.00494674686  0.00491306465
  498.381775  0.00487851631  0.00479107723
  505.328979  0.00481069228  0.00467211008
  512.372986  0.00474330178  0.00455556717
  519.515198  0.00467598205  0.00444104755
  526.756958  0.00460840529  0.00432908861
  534.09967  0.00454095704  0.0042199404
  541.544739  0.00447393628  0.00411354611
  549.093506  0.00440752506  0.00400983728
  556.74762  0.00434192177  0.00390874268
  564.508362  0.00427762931  0.00380999455
  572.377319  0.00421443768  0.00371294934
  580.355957  0.00415127911  0.00361704151
  588.445801  0.00408831937  0.00352361961
  596.648438  0.00402602972  0.00343260146
  604.965332  0.00396460807  0.00334393699
  613.398315  0.00390424766  0.00325756101
  621.948669  0.00384515733  0.00317341788
  630.618347  0.00378763722  0.00309144845
  639.408813  0.00373229594  0.00301159685
  648.321838  0.00368036027  0.00293372548
  657.35907  0.00363315828  0.00285047665
  666.522278  0.00358227128  0.00276421523
  675.813293  0.00352770253  0.00267966324
  685.233704  0.0034712858  0.00259769592
  694.785522  0.0034142402  0.00251823245
  704.470398  0.0033568982  0.00244120671
  714.290344  0.00329948589  0.0023665342
  724.247192  0.00324182864  0.00229414785
  734.342834  0.00318471412  0.00222469121
  744.579163  0.0031284634  0.00215743878
  754.958191  0.00307308487  0.00209222827
  765.481934  0.00301861507  0.00202898821
  776.152344  0.00296512363  0.00196765829
  786.971436  0.00291287503  0.00190818275
  797.941406  0.00286350236  0.00185049267
  809.06427  0.00281420513  0.00179079419
  820.342224  0.00276424619  0.00173280074
  831.777283  0.00271441415  0.00167668692
  843.371826  0.00266518863  0.0016223914
  855.127991  0.00261677871  0.00156985514
  867.047974  0.00256980187  0.00151898235
  879.134155  0.00252664229  0.00146955124
  891.388855  0.00248257606  0.00141564745
  903.814331  0.00243653334  0.00136365532
  916.413025  0.00238999375  0.00131357287
  929.187317  0.00234360201  0.00126532966
  942.139648  0.0022977856  0.00121885841
  955.272583  0.00225283927  0.00117377366
  968.588562  0.00220859307  0.0011290462
  982.09021  0.00216411171  0.00108524761
  995.779968  0.00211967179  0.00104314892
  1009.66058  0.00207577483  0.00100267911
  1023.7348  0.00203363854  0.000963781495
  1038.005  0.00199303823  0.000924860942
  1052.47424  0.00195244618  0.000884819427
  1067.14514  0.00191027159  0.000845069881
  1082.02051  0.00186723901  0.000807101431
  1097.10339  0.00182401447  0.000770840212
  1112.39636  0.00178094406  0.000736206537
  1127.90259  0.00173816306  0.000703129277
  1143.62488  0.00169576507  0.000671535032
  1159.56641  0.00165381178  0.000641352788
  1175.73022  0.00161234126  0.000612521952
  1192.11926  0.00157136249  0.000584987341
  1208.73682  0.00153067696  0.000558692031
  1225.58594  0.00149012322  0.000533909013
  1242.66992  0.00145062117  0.000511187536
  1259.99194  0.00141245197  0.000489894184
  1277.55554  0.00137553154  0.00046948815
  1295.36401  0.00133975793  0.000449930201
  1313.42078  0.00130527106  0.000431171968
  1331.72913  0.00127147289  0.000412043621
  1350.29272  0.00123800628  0.000393583468
  1369.11511  0.00120494736  0.000375923526
  1388.19983  0.0011724279  0.000359056547
  1407.55054  0.0011403414  0.0003429465
  1427.17102  0.00110866304  0.00032777508
  1447.06506  0.00107791089  0.000314022414
  1467.23621  0.00104861567  0.000300961867
  1487.68884  0.00102122454  0.00028841052
  1508.42639  0.00099408708  0.000274052145
  1529.453  0.000966451073  0.000259600638
  1550.77271  0.0009381891  0.000246109441
  1572.38977  0.000909807102  0.000233984785
  1594.30786  0.000882222608  0.000223469149
  1616.53174  0.000855906866  0.000213524661
  1639.06531  0.000830591307  0.000203938136
  1661.91296  0.00080544065  0.000194046908
  1685.0791  0.000780332251  0.000184760502
  1708.56824  0.000755786663  0.00017641345
  1732.38477  0.000731986947  0.000168592887
  1756.53333  0.000708520762  0.000160838827
  1781.01831  0.000685224426  0.000154182751
  1805.84485  0.000663393934  0.000148304898
  1831.01721  0.000641870429  0.000141600889
  1856.54065  0.000620299485  0.000135309107
  1882.41992  0.00059929362  0.00012975678
  1908.65979  0.00057907094  0.000124406724
  1935.2655  0.000559124397  0.000118640208
  1962.24194  0.000538711087  0.000112786089
  1989.59473  0.000518058601  0.000107714601
  2017.32861  0.000497654604  0.000103007813
  2045.44897  0.000477144145  9.83261634E-05
  2073.96143  0.000456168404  9.37005825E-05
  2102.87134  0.000434328482  8.91867312E-05
  2132.18433  0.000411080488  8.4838568E-05
  2161.90576  0.000385541556  8.07193428E-05
  2192.0415  0.00035512005  7.66349185E-05
  2222.59741  0.000304328278  8.77657294E-05
  2253.57935  0.000284653419  0.000132101253
  2284.99292  0.00027678872  0.000162094628
  2316.84448  0.000274261314  0.000180490621
  2349.13989  0.000282311725  0.0002117923
  2381.8855  0.000302988075  0.000215160588
  2415.08789  0.000315953628  0.000211770879
  2448.75293  0.000319738203  0.000204800686
  2482.88721  0.000321180938  0.000198571273
  2517.49707  0.000321295549  0.000192112595
  2552.58984  0.000319914892  0.000184955046
  2588.17163  0.000316436286  0.000177570822
  2624.24927  0.000311077951  0.000171155654
  2660.82983  0.000306326197  0.000166974642
  2697.92041  0.00029622906  0.00016041621
  2735.52783  0.000288173731  0.000164850047
  2773.65967  0.000287770585  0.000166646147
  2812.323  0.000289621705  0.000162986296
  2851.52539  0.000289405085  0.000156758688
  2891.27393  0.000286930182  0.000150997337
  2931.57666  0.00028419515  0.000145106285
  2972.44141  0.000280389766  0.000138730917
  3013.87549  0.000275848113  0.000132811518
  3055.88745  0.000270997814  0.000127259569
  3098.48486  0.000265349547  0.000121834579
  3141.67603  0.00025944112  0.000117789423
  3185.46924  0.000254448067  0.000115431911
  3229.8728  0.000251068472  0.000112598871
  3274.89575  0.000247620803  0.000107656
  3320.54614  0.000243323477  0.000103038183
  3366.83252  0.000238371664  9.85808074E-05
  3413.7644  0.000233227038  9.49850146E-05
  3461.35059  0.000228896577  9.19403246E-05
  3509.59961  0.000225408527  8.84907204E-05
  3558.52148  0.00022161896  8.40877983E-05
  3608.12549  0.000216917717  8.01675487E-05
  3658.4209  0.000212276878  7.65144359E-05
  3709.41724  0.000207665405  7.30517495E-05
  3761.12451  0.000203113887  6.97747091E-05
  3813.55249  0.000198618596  6.65971093E-05
  3866.71143  0.000194151275  6.35092438E-05
  3920.61133  0.00018969395  6.05629721E-05
  3975.26221  0.00018527887  5.77637365E-05
  4030.67554  0.000180941977  5.50962977E-05
  4086.86084  0.000176640795  5.24910574E-05
  4143.82959  0.000172471337  5.00457463E-05
  4201.59229  0.000168194441  4.75209708E-05
  4260.16016  0.000163842604  4.5243145E-05
  4319.54443  0.000159654592  4.33770292E-05
  4379.75635  0.000155779257  4.13362613E-05
  4440.80811  0.000151880056  3.94581184E-05
  4502.71045  0.000148073246  3.76098833E-05
  4565.47559  0.000144323698  3.58553734E-05
  4629.11572  0.000140643446  3.41770647E-05
  4693.64355  0.000137033261  3.25731889E-05
  4759.07031  0.000133489099  3.10472351E-05
  4825.40918  0.000130013024  2.9598139E-05
  4892.67285  0.000126616898  2.82368637E-05
  4960.87402  0.000123285892  2.69292977E-05
  5030.02588  0.000120038007  2.5723155E-05
  5100.14209  0.00011690383  2.45648134E-05
  5171.23486  0.000113827526  2.34215622E-05
  5243.31885  0.000110821653  2.23736897E-05
  5316.4082  0.000107960426  2.14585252E-05
  5390.51611  0.00010521974  2.03656655E-05
  5465.65723  0.000102400511  1.93965661E-05
  5541.84521  9.96691961E-05  1.84744094E-05
  5619.09521  9.70041947E-05  1.76009289E-05
  5697.42285  9.43996492E-05  1.67736725E-05
  5776.8418  9.18723599E-05  1.59986685E-05
  5857.36768  8.94320838E-05  1.52547082E-05
  5939.01611  8.70488147E-05  1.44794676E-05
  6021.80273  8.46967087E-05  1.3836674E-05
  6105.74316  8.2425875E-05  1.31666584E-05
  6190.85449  8.01967471E-05  1.25245906E-05
  6277.15186  7.80176342E-05  1.19159604E-05
  6364.65137  7.58937094E-05  1.13378983E-05
  6453.37158  7.38237723E-05  1.07874039E-05
  6543.32812  7.18057781E-05  1.02630947E-05
  6634.53809  6.98385556E-05  9.76390402E-06
  6727.02051  6.79209988E-05  9.2884984E-06
  6820.7915  6.60525329E-05  8.83600478E-06
  6915.86914  6.42322047E-05  8.40526263E-06
  7012.27295  6.24589011E-05  7.99521149E-06
  7110.02002  6.0731556E-05  7.60486455E-06
  7209.12988  5.90491145E-05  7.23327912E-06
  7309.62109  5.74103797E-05  6.87977217E-06
  7411.51318  5.58141219E-05  6.54349424E-06
  7514.82617  5.42599118E-05  6.22345487E-06
  7619.57861  5.27465709E-05  5.91882872E-06
  7725.79102  5.12729966E-05  5.62901778E-06
  7833.48438  4.98382287E-05  5.35337404E-06
  7942.67969  4.84414268E-05  5.09120491E-06
  8053.396  4.70816522E-05  4.84185102E-06
  8165.65625  4.57575989E-05  4.60465753E-06
  8279.48047  4.44685356E-05  4.37901645E-06
  8394.89258  4.32135785E-05  4.16436887E-06
  8511.91211  4.19918106E-05  3.96022233E-06
  8630.56348  4.08023225E-05  3.76610456E-06
  8750.86914  3.96442374E-05  3.58154625E-06
  8872.85156  3.8516675E-05  3.40608403E-06
  8996.53418  3.7418642E-05  3.23929657E-06
  9121.94141  3.63491017E-05  3.08068752E-06
  9249.0957  3.53075047E-05  2.92987102E-06
  9378.02344  3.42929015E-05  2.78646075E-06
  9508.74805  3.33043754E-05  2.65008657E-06
  9641.29492  3.23410495E-05  2.52041991E-06
  9775.68848  3.14020544E-05  2.39715382E-06
  9911.95703  3.04863024E-05  2.27996406E-06
  10050.125  2.95921345E-05  2.1686044E-06
  10190.2178  2.87191324E-05  2.06276309E-06
  10332.2637  2.78660864E-05  1.96214182E-06
  10476.29  2.70316359E-05  1.86649299E-06
  10622.3232  2.62142294E-05  1.77557763E-06
  10770.3926  2.54120114E-05  1.68915096E-06
  10920.5264  2.462269E-05  1.6070004E-06
  11072.7529  2.38396115E-05  1.52892721E-06
  11227.1006  2.30578098E-05  1.4547054E-06
  11383.6006  2.22663057E-05  1.38415396E-06
  11542.2822  2.14397242E-05  1.31709339E-06
  11703.1748  2.04854259E-05  1.25335453E-06
  11866.3105  1.7929231E-05  1.19275307E-06
  12031.7207  1.91125182E-05  2.82612041E-06
  12199.4365  1.90790906E-05  2.68429517E-06
  12369.4902  1.87949627E-05  2.54955216E-06
  12541.9141  1.84239525E-05  2.42158762E-06
  12716.7412  1.80098777E-05  2.30005003E-06
  12894.0059  1.75698424E-05  2.18462287E-06
  13073.7412  1.71102602E-05  2.0749892E-06
  13255.9824  1.6630358E-05  1.97084046E-06
  13440.7637  1.61163425E-05  1.87194019E-06
  13628.1211  1.5447029E-05  1.77798802E-06
  13818.0889  1.44683399E-05  2.35606217E-06
  14010.7061  1.48751942E-05  2.23948064E-06
  14206.0068  1.44834885E-05  2.1286653E-06
  14404.0312  1.37876641E-05  2.32722232E-06
  14604.8164  1.40040975E-05  2.21812297E-06
  14808.3994  1.37464795E-05  2.11415386E-06
  15014.8203  1.34591846E-05  2.01477314E-06
  15224.1182  1.31634242E-05  1.91983827E-06
  15436.335  1.28640968E-05  1.82917256E-06
  15651.5098  1.25641982E-05  1.74259492E-06
  15869.6816  1.22656129E-05  1.65993981E-06
  16090.8965  1.19695715E-05  1.58105388E-06
  16315.1953  1.16769697E-05  1.50576795E-06
  16542.6191  1.13880951E-05  1.43390128E-06
  16773.2148  1.11037198E-05  1.36533504E-06
  17007.0254  1.08242912E-05  1.29992418E-06
  17244.0938  1.0550003E-05  1.23753762E-06
  17484.4668  1.0281E-05  1.17805041E-06
  17728.1914  1.00173947E-05  1.12133057E-06
  17975.3125  9.75925104E-06  1.06724758E-06
  18225.8789  9.50651884E-06  1.01569401E-06
  18479.9375  9.25921177E-06  9.66546622E-07
  18737.5371  9.01743533E-06  9.19706963E-07
  18998.7285  8.78115588E-06  8.75077035E-07
  19263.5605  8.55033068E-06  8.32554178E-07
  19532.084  8.3249015E-06  7.92044773E-07
  19804.3516  8.10480287E-06  7.53460426E-07
  20080.4141  7.88996203E-06  7.1670388E-07
  20360.3223  7.68024165E-06  6.81694075E-07
  20644.1348  7.47564627E-06  6.48351659E-07
  20931.9023  7.27609267E-06  6.16605632E-07
  21223.6816  7.08149082E-06  5.86383294E-07
  21519.5293  6.89175022E-06  5.57611429E-07
  21819.5  6.70677809E-06  5.30223588E-07
  22123.6523  6.52648259E-06  5.04154116E-07
  22432.0449  6.35073047E-06  4.79338439E-07
  22744.7324  6.17946671E-06  4.55721789E-07
  23061.7832  6.01259899E-06  4.33249824E-07
  23383.252  5.85004E-06  4.11867376E-07
  23709.2012  5.69169288E-06  3.91522946E-07
  24039.6953  5.53745667E-06  3.72168103E-07
  24374.7949  5.38724771E-06  3.5375524E-07
  24714.5664  5.2409564E-06  3.36239481E-07
  25059.0742  5.09849087E-06  3.195793E-07
  25408.3848  4.95978065E-06  3.03732264E-07
  25762.5645  4.82473661E-06  2.88660743E-07
  26121.6797  4.69327006E-06  2.74327931E-07
  26485.8008  4.56529369E-06  2.60697846E-07
  26855.  4.44071657E-06  2.47738768E-07
  27229.3438  4.31945546E-06  2.35416152E-07
  27608.9062  4.20143078E-06  2.23699431E-07
  27993.7598  4.08656342E-06  2.12559627E-07
  28383.9766  3.97478198E-06  2.0196974E-07
  28779.6348  3.86601778E-06  1.91902828E-07
  29180.8066  3.76032222E-06  1.8233338E-07
  29587.5723  3.65740061E-06  1.73237069E-07
  30000.0059  3.55550719E-06  1.64591498E-07];
end


if(Material == 'Ir')
RefractiveData =[30.  0.382560968  0.510462046
  30.4181843  0.382750332  0.490292817
  30.8421955  0.381290048  0.470920324
  31.2721214  0.379120499  0.452312291
  31.7080383  0.376925349  0.434441537
  32.150032  0.375724018  0.415502936
  32.5981827  0.372667342  0.393861353
  33.0525818  0.3665663  0.372298717
  33.5133171  0.357777506  0.351916134
  33.9804764  0.346969247  0.333494574
  34.4541473  0.334692717  0.318296671
  34.9344177  0.323916674  0.304725826
  35.4213829  0.313165724  0.291733176
  35.9151382  0.301930398  0.279294193
  36.4157791  0.289861679  0.268692076
  36.9233932  0.278274477  0.259898156
  37.4380875  0.267920673  0.25211969
  37.9599533  0.258289635  0.24457407
  38.4890938  0.248987883  0.237253889
  39.0256119  0.239589691  0.230153188
  39.5696068  0.229955137  0.223434657
  40.1211853  0.22053729  0.218160704
  40.6804543  0.211778849  0.213563561
  41.2475166  0.203661174  0.209063441
  41.8224831  0.195871159  0.204658031
  42.405468  0.188262433  0.200345516
  42.9965744  0.180541009  0.196123883
  43.5959282  0.172595605  0.192440212
  44.2036324  0.16497086  0.189108029
  44.8198051  0.157440081  0.185916394
  45.4445686  0.149644941  0.182778478
  46.0780411  0.141252339  0.17985028
  46.7203445  0.131770685  0.177460566
  47.3715973  0.119064771  0.17542316
  48.0319328  0.101259857  0.18233107
  48.7014732  0.0937416628  0.196830064
  49.3803444  0.0967554376  0.215103939
  50.0686798  0.106974699  0.223752931
  50.7666092  0.117786579  0.219126746
  51.4742699  0.122661784  0.214596227
  52.1917915  0.125372499  0.210160419
  52.9193192  0.126870394  0.205815613
  53.6569862  0.127688512  0.20156014
  54.4049339  0.127996936  0.197393194
  55.163311  0.127900422  0.193312213
  55.9322586  0.127458349  0.189314991
  56.7119217  0.126692161  0.185400382
  57.5024567  0.12558192  0.181567967
  58.3040123  0.123890027  0.177814037
  59.1167336  0.12111818  0.174802601
  59.9407921  0.118741453  0.173566192
  60.7763329  0.117135741  0.173008338
  61.6235237  0.116037883  0.172622234
  62.4825172  0.115406178  0.172873974
  63.3534927  0.116084509  0.174368411
  64.2366028  0.118819058  0.175876856
  65.1320343  0.124322928  0.175379485
  66.0399323  0.129360929  0.173348844
  66.960495  0.135074094  0.170606419
  67.8938904  0.140986279  0.165474132
  68.8402939  0.145844921  0.157734275
  69.7998886  0.149296522  0.150164276
  70.7728577  0.152850837  0.141594574
  71.7593994  0.153600723  0.131851643
  72.7596817  0.152858958  0.122712426
  73.7739182  0.151138082  0.114206612
  74.8022842  0.148742929  0.106392302
  75.844986  0.145890653  0.0992223099
  76.9022217  0.14273943  0.092549935
  77.9741974  0.139319792  0.0863260403
  79.0611115  0.135596335  0.0805203095
  80.1631851  0.13161467  0.0751055628
  81.2806168  0.127234384  0.0701379031
  82.4136276  0.122814655  0.0661047772
  83.5624237  0.118677497  0.0627902821
  84.7272415  0.114894234  0.0596419685
  85.9082947  0.111310229  0.0566515662
  87.1058121  0.107837372  0.053811077
  88.320015  0.104443975  0.0511129759
  89.5511475  0.101099603  0.0485501103
  90.7994385  0.0977524668  0.0461158417
  92.0651398  0.0944425687  0.0439386815
  93.3484802  0.0912626758  0.042052608
  94.649704  0.0882748365  0.0402622335
  95.9690704  0.0854120702  0.0385480598
  97.3068314  0.0826460049  0.036906831
  98.6632385  0.079962723  0.0353354961
  100.038544  0.077354975  0.0338310711
  101.433029  0.0748210773  0.0323877521
  102.846954  0.0723493174  0.0309909545
  104.280579  0.0699169561  0.0296282824
  105.734192  0.06751322  0.0283253342
  107.208076  0.0651270449  0.0270798225
  108.702492  0.0627477542  0.0258890297
  110.217751  0.06032186  0.024817083
  111.754128  0.0579578504  0.0238846596
  113.311913  0.0557114147  0.0230465867
  114.891418  0.0535378605  0.0222379137
  116.492943  0.0513820127  0.0214610212
  118.116798  0.0490898527  0.0208237302
  119.763275  0.0469982438  0.0204020403
  121.432716  0.04506227  0.0200180486
  123.125427  0.0432211272  0.0196412876
  124.841721  0.0414179638  0.0192716122
  126.581955  0.0396303236  0.0189522915
  128.346436  0.037893828  0.0187846497
  130.135513  0.0363188237  0.0186778046
  131.949539  0.0348493159  0.0185714737
  133.788834  0.0334570557  0.0184659138
  135.653778  0.0321289711  0.0183609519
  137.544724  0.0308521856  0.0182565842
  139.462021  0.0296051782  0.0181628596
  141.406052  0.0283748601  0.018105628
  143.377167  0.0272418112  0.0181231815
  145.375778  0.0261932202  0.0181409195
  147.402222  0.0252082031  0.0181586165
  149.45694  0.0242803507  0.0181763433
  151.540268  0.0234073363  0.018193299
  153.652664  0.0225845147  0.018206818
  155.794495  0.0218049269  0.0182149597
  157.966202  0.0210659653  0.0182232857
  160.168167  0.0203722883  0.0182317197
  162.400818  0.0197206829  0.0182400551
  164.664597  0.0191128068  0.0182482675
  166.95993  0.0185729023  0.0182500724
  169.287262  0.0180800203  0.0182124097
  171.647034  0.0175886527  0.0181176178
  174.039703  0.0170894675  0.0180232991
  176.465729  0.0165994577  0.0179296322
  178.925552  0.0161197502  0.0178362355
  181.419678  0.0156447645  0.0177433696
  183.948563  0.0151728299  0.0176745877
  186.512726  0.0147241652  0.0176351927
  189.112595  0.0143197253  0.0176124796
  191.748734  0.0139609398  0.0175884422
  194.4216  0.0136473412  0.0175493862
  197.131729  0.0133422995  0.0174819957
  199.879639  0.0130483387  0.01741294
  202.665863  0.0127689736  0.0173441563
  205.490906  0.0125064775  0.017275624
  208.355347  0.0122621348  0.0172074009
  211.259705  0.0120368833  0.0171395633
  214.204544  0.0118322773  0.0170717873
  217.190445  0.011665835  0.0170044713
  220.217957  0.0115283858  0.0169102699
  223.287674  0.01139249  0.0167907067
  226.400192  0.01125581  0.0166620128
  229.556091  0.0111241564  0.0165343452
  232.755981  0.0110025592  0.0164076537
  236.000458  0.0108945193  0.0162818972
  239.290176  0.0108075701  0.0161572099
  242.625763  0.0107466131  0.0160333812
  246.007828  0.0107569434  0.0158781987
  249.437057  0.0107690739  0.0156499315
  252.914062  0.0107366331  0.0153759867
  256.439545  0.0106628677  0.0151068484
  260.01416  0.0105769811  0.0148424571
  263.638641  0.0104823206  0.01458262
  267.313599  0.0103826942  0.0143273249
  271.039825  0.0102831274  0.0140751852
  274.817963  0.010181047  0.0138233416
  278.648773  0.0100753913  0.013573519
  282.53299  0.00996799953  0.0133281723
  286.471375  0.00986275263  0.0130860694
  290.4646  0.00976337958  0.0128399935
  294.513519  0.00965594407  0.0125856586
  298.618896  0.00953903608  0.0123358592
  302.781494  0.00941686705  0.0120910387
  307.002106  0.00929041766  0.0118510742
  311.281525  0.00915712025  0.0116158593
  315.620605  0.00901611615  0.011389968
  320.020203  0.00887788087  0.0111911781
  324.48111  0.00875185989  0.0109988088
  329.004181  0.00863394421  0.0108097745
  333.590363  0.00852184184  0.0106239785
  338.240417  0.00841491576  0.0104413806
  342.955322  0.0083131846  0.0102619063
  347.735901  0.00821710285  0.010085511
  352.58316  0.00812787842  0.00991214812
  357.497986  0.00805322547  0.00974179711
  362.481323  0.00798339397  0.00955115352
  367.534119  0.00790747162  0.00935510825
  372.657349  0.00782479066  0.00916082039
  377.85199  0.0077383928  0.00897055399
  383.119019  0.0076512401  0.00878423639
  388.459473  0.00756413257  0.00860180706
  393.87439  0.00747790281  0.00842315797
  399.364807  0.00739345793  0.0082481876
  404.931732  0.00731134461  0.00807688665
  410.576233  0.00723261293  0.00790914707
  416.299469  0.00715993857  0.00774487481
  422.102448  0.00709540863  0.00757851033
  427.986359  0.00703656161  0.0074007581
  433.95224  0.00696994038  0.00721171731
  440.001282  0.00688958354  0.00702750031
  446.134674  0.00680606347  0.00684798229
  452.353577  0.00672027422  0.00667304732
  458.659119  0.00663290778  0.00650257524
  465.052582  0.00654456392  0.00633646129
  471.535156  0.0064557218  0.00617460208
  478.108093  0.00636671996  0.00601687143
  484.772644  0.00627796166  0.00586316735
  491.530151  0.00618969975  0.00571338367
  498.381775  0.00610219734  0.00556743843
  505.328979  0.00601569004  0.00542521803
  512.372986  0.00593041163  0.00528663537
  519.515198  0.00584663311  0.00515159499
  526.756958  0.00576467859  0.00501999119
  534.09967  0.00568517949  0.00489175832
  541.544739  0.00560887204  0.00476679765
  549.093506  0.00553966314  0.00464502722
  556.74762  0.00547804637  0.0045218193
  564.508362  0.00541811856  0.00438735588
  572.377319  0.00535199372  0.00424273452
  580.355957  0.00527556613  0.00410287874
  588.445801  0.00519482745  0.00396762323
  596.648438  0.00511131901  0.00383683504
  604.965332  0.00502635026  0.00371035328
  613.398315  0.00494045345  0.00358804478
  621.948669  0.00485402066  0.0034697724
  630.618347  0.00476736436  0.00335539319
  639.408813  0.0046807481  0.00324478699
  648.321838  0.00459436188  0.00313782343
  657.35907  0.00450825552  0.00303439214
  666.522278  0.00442274008  0.00293436553
  675.813293  0.00433791569  0.00283763348
  685.233704  0.0042538913  0.00274408958
  694.785522  0.00417075958  0.00265363045
  704.470398  0.00408859365  0.002566159
  714.290344  0.00400745543  0.00248157023
  724.247192  0.00392738543  0.0023997617
  734.342834  0.00384847098  0.00232065795
  744.579163  0.00377078471  0.00224415795
  754.958191  0.00369437155  0.0021701802
  765.481934  0.00361928414  0.00209864276
  776.152344  0.00354557927  0.00202946388
  786.971436  0.00347331725  0.00196256302
  797.941406  0.00340258097  0.00189787091
  809.06427  0.00333354669  0.00183530827
  820.342224  0.00326633896  0.00177480618
  831.777283  0.0032011976  0.00171630178
  843.371826  0.00313829631  0.00165972637
  855.127991  0.00308167143  0.00160501502
  867.047974  0.00303564896  0.00154558453
  879.134155  0.0029901918  0.00145268941
  891.388855  0.00290479884  0.00139768724
  903.814331  0.00283274311  0.00134509965
  916.413025  0.00276621012  0.00129447761
  929.187317  0.00270221801  0.00124508515
  942.139648  0.0026397123  0.00119684311
  955.272583  0.00257808878  0.00115020503
  968.588562  0.00251742289  0.00110516045
  982.09021  0.00245771185  0.00106186245
  995.779968  0.00239913841  0.00102015806
  1009.66058  0.00234178989  0.000979989883
  1023.7348  0.00228554383  0.00094082352
  1038.005  0.00223009894  0.000902754313
  1052.47424  0.00217527756  0.000866115326
  1067.14514  0.00212126481  0.000830861158
  1082.02051  0.00206806557  0.000797027315
  1097.10339  0.00201575132  0.000764556637
  1112.39636  0.00196438166  0.000733397785
  1127.90259  0.00191397313  0.000703505182
  1143.62488  0.00186453864  0.000674827257
  1159.56641  0.00181607902  0.000647308247
  1175.73022  0.00176858634  0.000620896812
  1192.11926  0.00172205351  0.0005955589
  1208.73682  0.00167645793  0.000571245269
  1225.58594  0.00163185026  0.00054791139
  1242.66992  0.0015882171  0.000525451149
  1259.99194  0.00154552213  0.000503810588
  1277.55554  0.00150368956  0.000482948381
  1295.36401  0.00146263966  0.000462846743
  1313.42078  0.00142237032  0.000443567726
  1331.72913  0.00138285419  0.000425088569
  1350.29272  0.00134414178  0.000407374027
  1369.11511  0.00130622811  0.000390390021
  1388.19983  0.00126909895  0.000374109019
  1407.55054  0.00123273884  0.000358503865
  1427.17102  0.00119713414  0.000343545777
  1447.06506  0.00116227451  0.000329202448
  1467.23621  0.00112810754  0.000315438112
  1487.68884  0.00109461253  0.000302223052
  1508.42639  0.001061777  0.000289487973
  1529.453  0.00102953403  0.000277259329
  1550.77271  0.000997861731  0.000265543
  1572.38977  0.000966754393  0.00025431774
  1594.30786  0.000936188211  0.000243555754
  1616.53174  0.000906096131  0.000233246785
  1639.06531  0.000876405975  0.000223372015
  1661.91296  0.000847136835  0.000213916661
  1685.0791  0.000818248722  0.000204858021
  1708.56824  0.000789688958  0.000196175984
  1732.38477  0.000761389849  0.000187823389
  1756.53333  0.000733255874  0.000179749361
  1781.01831  0.00070512417  0.00017199252
  1805.84485  0.000676645432  0.000164541489
  1831.01721  0.000647807785  0.000157407354
  1856.54065  0.000618353602  0.00015058252
  1882.41992  0.000587910356  0.000144055404
  1908.65979  0.000555906794  0.000137810988
  1935.2655  0.000521421665  0.000131834342
  1962.24194  0.000482917967  0.000126115105
  1989.59473  0.000434508256  0.00012064047
  2017.32861  0.000354747172  0.000115449933
  2045.44897  8.6445747E-05  0.000315354118
  2073.96143  0.000332131924  0.000301339984
  2102.87134  0.000244207185  0.000287948584
  2132.18433  0.000346563407  0.000405162806
  2161.90576  0.000410576176  0.00038639683
  2192.0415  0.000434896763  0.000368502835
  2222.59741  0.000447889121  0.000351434952
  2253.57935  0.000454907189  0.000335163466
  2284.99292  0.00045785238  0.000319643412
  2316.84448  0.000457832473  0.000304845045
  2349.13989  0.000455529895  0.000290738943
  2381.8855  0.00045137704  0.000277285755
  2415.08789  0.00044556908  0.000264453032
  2448.75293  0.000437912648  0.000252223545
  2482.88721  0.00042811234  0.000240562207
  2517.49707  0.000412881374  0.000229442085
  2552.58984  0.000349393638  0.000254116167
  2588.17163  0.000404773396  0.000242084439
  2624.24927  0.000406497391  0.000230621823
  2660.82983  0.000403705839  0.000219701411
  2697.92041  0.00039886203  0.000209312202
  2735.52783  0.000392954593  0.000199415939
  2773.65967  0.000386227592  0.000189990562
  2812.323  0.000378736586  0.000181014082
  2851.52539  0.000370166556  0.000172465341
  2891.27393  0.000355028722  0.000164323123
  2931.57666  0.000353656185  0.000166530925
  2972.44141  0.000349745416  0.000158801748
  3013.87549  0.00034392465  0.000151436456
  3055.88745  0.000337345642  0.000144417616
  3098.48486  0.00033020394  0.000137725918
  3141.67603  0.000319687999  0.000131344874
  3185.46924  0.000309460942  0.000129890454
  3229.8728  0.000309932017  0.000124037644
  3274.89575  0.000304112065  0.000118437747
  3320.54614  0.000297949329  0.000113076494
  3366.83252  0.000291682285  0.000107946529
  3413.7644  0.000285377027  0.000103037848
  3461.35059  0.000279074127  9.83424106E-05
  3509.59961  0.00027279905  9.38507656E-05
  3558.52148  0.000266568619  8.9553163E-05
  3608.12549  0.000260397908  8.54481477E-05
  3658.4209  0.00025428753  8.15194435E-05
  3709.41724  0.000248255441  7.77668829E-05
  3761.12451  0.000242307855  7.41775511E-05
  3813.55249  0.000236449763  7.07480649E-05
  3866.71143  0.000230685677  6.74736148E-05
  3920.61133  0.000225019437  6.43460589E-05
  3975.26221  0.000219453199  6.13586089E-05
  4030.67554  0.000213980602  5.85021044E-05
  4086.86084  0.000208612299  5.57782587E-05
  4143.82959  0.000203349104  5.31751793E-05
  4201.59229  0.000198189635  5.06892102E-05
  4260.16016  0.000193133994  4.83163749E-05
  4319.54443  0.00018818317  4.60518022E-05
  4379.75635  0.000183337266  4.38908392E-05
  4440.80811  0.000178593444  4.18279124E-05
  4502.71045  0.000173951223  3.98595002E-05
  4565.47559  0.000169412189  3.79816156E-05
  4629.11572  0.000164975252  3.6189911E-05
  4693.64355  0.000160639145  3.44807049E-05
  4759.07031  0.000156402763  3.2850654E-05
  4825.40918  0.000152264911  3.1296091E-05
  4892.67285  0.000148223829  2.981336E-05
  4960.87402  0.00014427671  2.83990485E-05
  5030.02588  0.000140424352  2.70507644E-05
  5100.14209  0.000136664778  2.576529E-05
  5171.23486  0.000132996662  2.45398151E-05
  5243.31885  0.000129418404  2.33715728E-05
  5316.4082  0.000125928171  2.22578674E-05
  5390.51611  0.000122524565  2.11965307E-05
  5465.65723  0.000119204567  2.0184887E-05
  5541.84521  0.000115967865  1.92209282E-05
  5619.09521  0.000112812988  1.83023039E-05
  5697.42285  0.000109738219  1.74269098E-05
  5776.8418  0.000106741776  1.65927959E-05
  5857.36768  0.000103821963  1.57981449E-05
  5939.01611  0.000100977217  1.50410406E-05
  6021.80273  9.82051206E-05  1.43197276E-05
  6105.74316  9.55046635E-05  1.36326744E-05
  6190.85449  9.28743248E-05  1.29782493E-05
  6277.15186  9.03125547E-05  1.23549517E-05
  6364.65137  8.7817818E-05  1.17613845E-05
  6453.37158  8.53884994E-05  1.11960708E-05
  6543.32812  8.30230347E-05  1.06575908E-05
  6634.53809  8.07198012E-05  1.01448513E-05
  6727.02051  7.84769218E-05  9.65657E-06
  6820.7915  7.62934651E-05  9.19161084E-06
  6915.86914  7.41678014E-05  8.74876696E-06
  7012.27295  7.2098519E-05  8.32710339E-06
  7110.02002  7.00842502E-05  7.925717E-06
  7209.12988  6.81235324E-05  7.54359826E-06
  7309.62109  6.62150633E-05  7.1798836E-06
  7411.51318  6.43569874E-05  6.83350027E-06
  7514.82617  6.25484608E-05  6.50377069E-06
  7619.57861  6.07881484E-05  6.18995409E-06
  7725.79102  5.90748132E-05  5.89118372E-06
  7833.48438  5.74071382E-05  5.60670787E-06
  7942.67969  5.57838503E-05  5.33593584E-06
  8053.396  5.42037487E-05  5.07824825E-06
  8165.65625  5.26651056E-05  4.83289432E-06
  8279.48047  5.11671169E-05  4.59942703E-06
  8394.89258  4.97085748E-05  4.37719655E-06
  8511.91211  4.82884825E-05  4.16573084E-06
  8630.56348  4.69056176E-05  3.96444875E-06
  8750.86914  4.55587178E-05  3.77282413E-06
  8872.85156  4.42467172E-05  3.59051955E-06
  8996.53418  4.29679785E-05  3.41693658E-06
  9121.94141  4.17212286E-05  3.25179985E-06
  9249.0957  4.05055107E-05  3.09460665E-06
  9378.02344  3.93195987E-05  2.94503639E-06
  9508.74805  3.81621503E-05  2.80268728E-06
  9641.29492  3.70316811E-05  2.66722031E-06
  9775.68848  3.59267033E-05  2.53836606E-06
  9911.95703  3.48455906E-05  2.41572343E-06
  10050.125  3.3783148E-05  2.2977199E-06
  10190.2178  3.27374837E-05  2.18555579E-06
  10332.2637  3.17047234E-05  2.07894914E-06
  10476.29  3.06788534E-05  1.97763234E-06
  10622.3232  2.96500821E-05  1.88135061E-06
  10770.3926  2.86007344E-05  1.78984556E-06
  10920.5264  2.74973936E-05  1.70288195E-06
  11072.7529  2.61445057E-05  1.62025469E-06
  11227.1006  2.0953803E-05  3.95164125E-06
  11383.6006  2.48095366E-05  3.74710544E-06
  11542.2822  2.47242442E-05  3.55315478E-06
  11703.1748  2.43225713E-05  3.36926701E-06
  11866.3105  2.38207358E-05  3.19490186E-06
  12031.7207  2.32668463E-05  3.02954254E-06
  12199.4365  2.26736029E-05  2.87277567E-06
  12369.4902  2.20431302E-05  2.72409102E-06
  12541.9141  2.13539133E-05  2.58311752E-06
  12716.7412  2.02144674E-05  2.44944249E-06
  12894.0059  1.87403184E-05  3.25814358E-06
  13073.7412  1.97389982E-05  3.10039195E-06
  13255.9824  1.92751322E-05  2.95026257E-06
  13440.7637  1.85999052E-05  3.18359071E-06
  13628.1211  1.85681492E-05  3.03459888E-06
  13818.0889  1.82459389E-05  2.89230684E-06
  14010.7061  1.78733771E-05  2.75638286E-06
  14206.0068  1.74852721E-05  2.62658386E-06
  14404.0312  1.7090957E-05  2.50265475E-06
  14604.8164  1.66951177E-05  2.38432517E-06
  14808.3994  1.63004443E-05  2.27139503E-06
  15014.8203  1.59079664E-05  2.16357239E-06
  15224.1182  1.55200851E-05  2.06069217E-06
  15436.335  1.51375616E-05  1.96253086E-06
  15651.5098  1.47609708E-05  1.8688886E-06
  15869.6816  1.43907309E-05  1.77957202E-06
  16090.8965  1.4027145E-05  1.69439772E-06
  16315.1953  1.36704466E-05  1.61318349E-06
  16542.6191  1.33205631E-05  1.53572137E-06
  16773.2148  1.29778136E-05  1.46187506E-06
  17007.0254  1.26423283E-05  1.39147767E-06
  17244.0938  1.23141308E-05  1.32438083E-06
  17484.4668  1.19932047E-05  1.26044426E-06
  17728.1914  1.16795172E-05  1.19951972E-06
  17975.3125  1.13730221E-05  1.14146019E-06
  18225.8789  1.10735682E-05  1.08614893E-06
  18479.9375  1.07811002E-05  1.03344996E-06
  18737.5371  1.04956262E-05  9.83248697E-07
  18998.7285  1.02170352E-05  9.3543764E-07
  19263.5605  9.94522543E-06  8.89903674E-07
  19532.084  9.68008317E-06  8.46544026E-07
  19804.3516  9.42148836E-06  8.05261152E-07
  20080.4141  9.16931731E-06  7.6594722E-07
  20360.3223  8.92341268E-06  7.28515317E-07
  20644.1348  8.6837108E-06  6.92877677E-07
  20931.9023  8.45009436E-06  6.58956367E-07
  21223.6816  8.22244056E-06  6.26670783E-07
  21519.5293  8.00062026E-06  5.95941685E-07
  21819.5  7.78450521E-06  5.6669802E-07
  22123.6523  7.57397129E-06  5.38867653E-07
  22432.0449  7.36886977E-06  5.12380382E-07
  22744.7324  7.16910836E-06  4.8717726E-07
  23061.7832  6.97456517E-06  4.63199171E-07
  23383.252  6.78512788E-06  4.40386202E-07
  23709.2012  6.60067462E-06  4.18682646E-07
  24039.6953  6.42108171E-06  3.98036462E-07
  24374.7949  6.24623817E-06  3.78396919E-07
  24714.5664  6.07600987E-06  3.59715017E-07
  25059.0742  5.91030039E-06  3.41945935E-07
  25408.3848  5.74900469E-06  3.25044823E-07
  25762.5645  5.59201499E-06  3.08970726E-07
  26121.6797  5.43921897E-06  2.9368411E-07
  26485.8008  5.29051385E-06  2.79146519E-07
  26855.  5.14580051E-06  2.65323933E-07
  27229.3438  5.00497572E-06  2.52179206E-07
  27608.9062  4.86793169E-06  2.39679991E-07
  27993.7598  4.73458203E-06  2.2779578E-07
  28383.9766  4.60483534E-06  2.16496545E-07
  28779.6348  4.47861157E-06  2.05753949E-07
  29180.8066  4.35595939E-06  1.95541162E-07
  29587.5723  4.23655365E-06  1.85831965E-07
  30000.0059  4.11850533E-06  1.76602171E-07];
end

if(Material == 'Si')
RefractiveData =[30.  0.145224988  0.0142891994
  30.4181843  0.140436038  0.0139345387
  30.8421955  0.135814235  0.0135886809
  31.2721214  0.131336331  0.0132530928
  31.7080383  0.127011597  0.0129477074
  32.150032  0.122850023  0.0127012618
  32.5981827  0.118857257  0.0124645438
  33.0525818  0.11501807  0.0122322477
  33.5133171  0.111319959  0.0120042702
  33.9804764  0.107754596  0.011780533
  34.4541473  0.104315214  0.011560984
  34.9344177  0.100996301  0.0113454964
  35.4213829  0.0977928638  0.0111340377
  35.9151382  0.0946987346  0.010926527
  36.4157791  0.0917092189  0.0107228914
  36.9233932  0.0888204798  0.0105230445
  37.4380875  0.0860289335  0.0103269136
  37.9599533  0.0833313987  0.0101344567
  38.4890938  0.0807253346  0.00994556677
  39.0256119  0.0782143027  0.00976019911
  39.5696068  0.0757993534  0.00956073869
  40.1211853  0.0734570622  0.00933954306
  40.6804543  0.0711698607  0.00911327917
  41.2475166  0.0689380467  0.00889249612
  41.8224831  0.066770114  0.00867705699
  42.405468  0.0646637753  0.00846684817
  42.9965744  0.0626167506  0.00826171506
  43.5959282  0.0606281199  0.00806155335
  44.2036324  0.0586964414  0.00786624476
  44.8198051  0.0568203069  0.00767567521
  45.4445686  0.0549989343  0.00748972176
  46.0780411  0.0532308854  0.00730617484
  46.7203445  0.0515129939  0.00712073408
  47.3715973  0.0498393774  0.00693663349
  48.0319328  0.0482058749  0.00675729988
  48.7014732  0.0466151796  0.00658260938
  49.3803444  0.0450660028  0.00641242787
  50.0686798  0.0435568094  0.00624664268
  50.7666092  0.0420862027  0.00608515041
  51.4742699  0.0406516343  0.00592783652
  52.1917915  0.0392451808  0.00577458646
  52.9193192  0.0378681496  0.00563373649
  53.6569862  0.0365319625  0.00551373884
  54.4049339  0.0352378488  0.00539998058
  55.163311  0.0339821838  0.00528856087
  55.9322586  0.032761123  0.00517943595
  56.7119217  0.0315721743  0.00507256901
  57.5024567  0.030413093  0.00496790931
  58.3040123  0.0292748418  0.00486540375
  59.1167336  0.0281465445  0.00476501742
  59.9407921  0.027049493  0.00470540673
  60.7763329  0.0259973649  0.00466601597
  61.6235237  0.0249908753  0.00462989602
  62.4825172  0.0240239911  0.00459405454
  63.3534927  0.023093747  0.00455849199
  64.2366028  0.0222011805  0.00452321162
  65.1320343  0.0213631224  0.00448428933
  66.0399323  0.0205427464  0.00440320559
  66.960495  0.0197327491  0.00431014877
  67.8938904  0.0189380553  0.00421905424
  68.8402939  0.0181679465  0.00412988616
  69.7998886  0.0174302161  0.00403630035
  70.7728577  0.0167284422  0.00389889325
  71.7593994  0.0159940161  0.00371463713
  72.7596817  0.0152436486  0.00353699108
  73.7739182  0.0144979069  0.00336783659
  74.8022842  0.0137657057  0.00318411947
  75.844986  0.0130260279  0.00297594839
  76.9022217  0.0122436816  0.00275878352
  77.9741974  0.0114194043  0.00255745766
  79.0611115  0.0105633233  0.00237230281
  80.1631851  0.00969524961  0.00227208086
  81.2806168  0.00885013118  0.00218887208
  82.4136276  0.00801841635  0.00210871105
  83.5624237  0.00717720529  0.00203244807
  84.7272415  0.00631613098  0.00196965248
  85.9082947  0.00545288436  0.00194257183
  87.1058121  0.00459559215  0.00191586674
  88.320015  0.0037132625  0.00188952591
  89.5511475  0.00279815542  0.00186354958
  90.7994385  0.00183396996  0.0018408153
  92.0651398  0.000804258976  0.00182473147
  93.3484802 -0.000313971337  0.00181476725
  94.649704 -0.00156157615  0.00180486089
  95.9690704 -0.00304994197  0.00179500796
  97.3068314 -0.00507385004  0.0017906198
  98.6632385 -0.0086174272  0.00180488802
  100.038544 -0.0160029624  0.00764494296
  101.433029 -0.00629231287  0.017251458
  102.846954 -0.00422382262  0.0120728482
  104.280579 -0.00523979031  0.0103707369
  105.734192 -0.00752048008  0.0115892664
  107.208076 -0.00666557578  0.0135918912
  108.702492 -0.00593095459  0.0143676847
  110.217751 -0.00590907689  0.0147453099
  111.754128 -0.00554097164  0.0156555586
  113.311913 -0.00519302906  0.0161573198
  114.891418 -0.00517762313  0.0169034488
  116.492943 -0.00467113033  0.0181893408
  118.116798 -0.00350276497  0.019246636
  119.763275 -0.00217946013  0.0194694214
  121.432716 -0.00135115115  0.0196760576
  123.125427 -0.000274209771  0.0196132958
  124.841721  0.000563973328  0.019412579
  126.581955  0.00110622169  0.0192521345
  128.346436  0.00167961023  0.0191761181
  130.135513  0.0023507704  0.0192396846
  131.949539  0.00335369282  0.0192366969
  133.788834  0.00458680512  0.018726401
  135.653778  0.0052315807  0.0174630955
  137.544724  0.00519081717  0.0164539702
  139.462021  0.00501844753  0.0161111318
  141.406052  0.00515376357  0.0158411693
  143.377167  0.00508207828  0.0154644493
  145.375778  0.00512892101  0.0154476669
  147.402222  0.00539070833  0.0153009715
  149.45694  0.00567043107  0.0149849588
  151.540268  0.00567485718  0.0150179984
  153.652664  0.00653794641  0.0144752609
  155.794495  0.00623837346  0.0136955753
  157.966202  0.00603050459  0.0136175826
  160.168167  0.00617286004  0.0136053786
  162.400818  0.00631487463  0.0136944558
  164.664597  0.00675057061  0.0136403861
  166.95993  0.00715658721  0.0133243017
  169.287262  0.00774588389  0.0131522315
  171.647034  0.00837748591  0.0125023611
  174.039703  0.00865232479  0.0115839122
  176.465729  0.00848829187  0.0107647395
  178.925552  0.00822979119  0.010216807
  181.419678  0.00805879291  0.00989953242
  183.948563  0.00802738033  0.00956187397
  186.512726  0.00790408161  0.00923523307
  189.112595  0.00781944953  0.00891754124
  191.748734  0.00773876626  0.00860352442
  194.4216  0.00765487365  0.00830060244
  197.131729  0.00756809814  0.00800832734
  199.879639  0.00747622736  0.00772633916
  202.665863  0.00737909274  0.00745817088
  205.490906  0.007280841  0.00720523251
  208.355347  0.00718741259  0.00696420902
  211.259705  0.00709701376  0.00673125451
  214.204544  0.0070082508  0.00650608726
  217.190445  0.00692612631  0.00628844649
  220.217957  0.00684985984  0.00607489143
  223.287674  0.00677241106  0.00585438171
  226.400192  0.00668758806  0.00562991574
  229.556091  0.00659409119  0.00541404774
  232.755981  0.00649611279  0.00520644989
  236.000458  0.00639513694  0.00500682043
  239.290176  0.00629265048  0.00481485575
  242.625763  0.00618968066  0.00463024667
  246.007828  0.00608849339  0.00445270957
  249.437057  0.00598817831  0.00427873712
  252.914062  0.0058858688  0.00410642102
  256.439545  0.00578002213  0.00394008774
  260.01416  0.00567243621  0.0037804842
  263.638641  0.00556406239  0.00362735381
  267.313599  0.00545563269  0.00348041975
  271.039825  0.00534747541  0.00333943451
  274.817963  0.00523983408  0.00320416503
  278.648773  0.00513292477  0.00307437754
  282.53299  0.00502696587  0.00294984761
  286.471375  0.00492210593  0.00283035613
  290.4646  0.00481854985  0.00271571032
  294.513519  0.00471697794  0.00260570552
  298.618896  0.00461704191  0.00249894988
  302.781494  0.00451815547  0.00239521638
  307.002106  0.00441984693  0.00229506334
  311.281525  0.00432206644  0.00219910219
  315.620605  0.00422543148  0.00210715388
  320.020203  0.00412995694  0.00201904471
  324.48111  0.00403596833  0.00193462789
  329.004181  0.00394351874  0.00185373845
  333.590363  0.00385265681  0.00177622854
  338.240417  0.00376346079  0.00170195964
  342.955322  0.00367600122  0.0016307967
  347.735901  0.00359031674  0.00156260841
  352.58316  0.00350652472  0.00149727345
  357.497986  0.00342488172  0.00143466599
  362.481323  0.00334608834  0.00137468067
  367.534119  0.00326964422  0.00131464819
  372.657349  0.00319398916  0.00125495519
  377.85199  0.00311802025  0.00119734404
  383.119019  0.00304222014  0.00114237948
  388.459473  0.00296739815  0.00108993798
  393.87439  0.00289369468  0.00103989954
  399.364807  0.00282126479  0.000992159592
  404.931732  0.00275015924  0.000946611864
  410.576233  0.00268042949  0.000903154956
  416.299469  0.00261210697  0.000861692533
  422.102448  0.00254520169  0.000822134083
  427.986359  0.00247972389  0.000784391828
  433.95224  0.002415661  0.000748383231
  440.001282  0.00235304073  0.000714026333
  446.134674  0.00229189778  0.000681247038
  452.353577  0.00223225378  0.000649972411
  458.659119  0.00217415346  0.000620065897
  465.052582  0.00211755815  0.000591272023
  471.535156  0.00206217798  0.000563233974
  478.108093  0.00200772611  0.000536526728
  484.772644  0.00195440208  0.000511084741
  491.530151  0.00190229074  0.000486849895
  498.381775  0.00185139407  0.000463764532
  505.328979  0.00180170103  0.000441772514
  512.372986  0.00175320648  0.00042082346
  519.515198  0.00170590577  0.000400869816
  526.756958  0.00165976258  0.00038185998
  534.09967  0.00161477155  0.000363752799
  541.544739  0.00157092267  0.000346504065
  549.093506  0.00152820209  0.00033007309
  556.74762  0.00148659456  0.000314420991
  564.508362  0.00144608878  0.000299511332
  572.377319  0.0014066844  0.000285308663
  580.355957  0.00136843137  0.000271779514
  588.445801  0.00133121025  0.000258572662
  596.648438  0.00129482697  0.000245834148
  604.965332  0.00125925045  0.000233685379
  613.398315  0.00122450304  0.000222136616
  621.948669  0.00119061128  0.000211159044
  630.618347  0.00115757505  0.000200723807
  639.408813  0.00112537644  0.000190803956
  648.321838  0.00109400274  0.000181375115
  657.35907  0.00106344512  0.000172411921
  666.522278  0.0010336797  0.000163891164
  675.813293  0.00100469694  0.000155791975
  685.233704  0.000976427458  0.000148093342
  694.785522  0.000948816887  0.000140820805
  704.470398  0.000921951025  0.000134073911
  714.290344  0.000895965961  0.00012774358
  724.247192  0.00087076833  0.000121711506
  734.342834  0.000846297247  0.000115964707
  744.579163  0.000822530128  0.000110489302
  754.958191  0.000799447356  0.0001052722
  765.481934  0.000777028908  0.000100301258
  776.152344  0.000755256857  9.5565083E-05
  786.971436  0.000734124798  9.1052927E-05
  797.941406  0.000713680056  8.66937698E-05
  809.06427  0.000693736074  8.24175659E-05
  820.342224  0.000674282026  7.83200521E-05
  831.777283  0.000655329844  7.44260979E-05
  843.371826  0.000636882905  7.07254439E-05
  855.127991  0.000618933176  6.72091264E-05
  867.047974  0.000601478852  6.38676938E-05
  879.134155  0.0005845087  6.06922331E-05
  891.388855  0.000568038144  5.76744787E-05
  903.814331  0.000552055251  5.47317577E-05
  916.413025  0.000536477077  5.18719535E-05
  929.187317  0.000521265611  4.91324354E-05
  942.139648  0.000506436802  4.65376579E-05
  955.272583  0.000491991232  4.40798831E-05
  968.588562  0.000477926253  4.17519113E-05
  982.09021  0.000464238256  3.95466232E-05
  995.779968  0.000450918946  3.74569681E-05
  1009.66058  0.000437957176  3.54764852E-05
  1023.7348  0.000425344188  3.35997538E-05
  1038.005  0.000413071975  3.18221173E-05
  1052.47424  0.000401129888  3.01388591E-05
  1067.14514  0.000389500317  2.85442311E-05
  1082.02051  0.000378172001  2.7034177E-05
  1097.10339  0.000367129513  2.56477524E-05
  1112.39636  0.000356416131  2.43693194E-05
  1127.90259  0.000346029323  2.31692047E-05
  1143.62488  0.000335944758  2.20276779E-05
  1159.56641  0.00032614643  2.09422833E-05
  1175.73022  0.000316623307  1.9910427E-05
  1192.11926  0.0003073673  1.89290913E-05
  1208.73682  0.000298365398  1.79950184E-05
  1225.58594  0.000289609801  1.71062729E-05
  1242.66992  0.000281092711  1.62610959E-05
  1259.99194  0.000272806879  1.54577065E-05
  1277.55554  0.000264745409  1.46940865E-05
  1295.36401  0.000256901432  1.39680615E-05
  1313.42078  0.000249258912  1.32749437E-05
  1331.72913  0.00024181552  1.26160885E-05
  1350.29272  0.000234565552  1.19896695E-05
  1369.11511  0.000227501252  1.13943343E-05
  1388.19983  0.000220615009  1.08282384E-05
  1407.55054  0.00021389965  1.02894664E-05
  1427.17102  0.000207348334  9.77692162E-06
  1447.06506  0.000200948503  9.28941336E-06
  1467.23621  0.000194692824  8.82620407E-06
  1487.68884  0.000188575403  8.38594042E-06
  1508.42639  0.000182587624  7.96242693E-06
  1529.453  0.000176717411  7.5564767E-06
  1550.77271  0.000170951753  7.17073453E-06
  1572.38977  0.000165278936  6.80433277E-06
  1594.30786  0.000159677438  6.45677574E-06
  1616.53174  0.000154117108  6.12691792E-06
  1639.06531  0.000148584571  5.81384757E-06
  1661.91296  0.00014304489  5.51677749E-06
  1685.0791  0.000137449882  5.23491417E-06
  1708.56824  0.000131730412  4.96746634E-06
  1732.38477  0.000125779974  4.71290105E-06
  1756.53333  0.000119410317  4.46704462E-06
  1781.01831  0.000111896865  4.23308438E-06
  1805.84485  0.000101646438  4.01063198E-06
  1831.01721  5.07619188E-05  3.79973153E-06
  1856.54065  9.11733587E-05  4.10004432E-05
  1882.41992  9.91268462E-05  3.91196882E-05
  1908.65979  0.000102691811  3.73249168E-05
  1935.2655  0.000103961  3.56122619E-05
  1962.24194  0.00010413627  3.39780381E-05
  1989.59473  0.000103667538  3.24177854E-05
  2017.32861  0.000102780788  3.09259449E-05
  2045.44897  0.000101586891  2.94989586E-05
  2073.96143  0.000100187091  2.81367611E-05
  2102.87134  9.86479863E-05  2.68226468E-05
  2132.18433  9.70017136E-05  2.55632785E-05
  2161.90576  9.52745177E-05  2.43599188E-05
  2192.0415  9.34882046E-05  2.32095808E-05
  2222.59741  9.16604913E-05  2.21098762E-05
  2253.57935  8.98023864E-05  2.10604085E-05
  2284.99292  8.79224172E-05  2.00572722E-05
  2316.84448  8.60382061E-05  1.90991086E-05
  2349.13989  8.41545625E-05  1.81848409E-05
  2381.8855  8.22771399E-05  1.73119515E-05
  2415.08789  8.04109004E-05  1.64786816E-05
  2448.75293  7.85595403E-05  1.56841033E-05
  2482.88721  7.67266247E-05  1.49258012E-05
  2517.49707  7.4911397E-05  1.42022664E-05
  2552.58984  7.31204273E-05  1.35129012E-05
  2588.17163  7.13554255E-05  1.2855171E-05
  2624.24927  6.96172792E-05  1.22281663E-05
  2660.82983  6.79073128E-05  1.16308829E-05
  2697.92041  6.62269813E-05  1.1061702E-05
  2735.52783  6.45768014E-05  1.05186737E-05
  2773.65967  6.29559727E-05  1.00017396E-05
  2812.323  6.13658194E-05  9.50937374E-06
  2851.52539  5.98074294E-05  9.04028639E-06
  2891.27393  5.82808389E-05  8.593639E-06
  2931.57666  5.67858915E-05  8.16830106E-06
  2972.44141  5.53226891E-05  7.76325123E-06
  3013.87549  5.38915592E-05  7.37788605E-06
  3055.88745  5.24915595E-05  7.0110068E-06
  3098.48486  5.1122337E-05  6.66167944E-06
  3141.67603  4.97841647E-05  6.32945421E-06
  3185.46924  4.84767152E-05  6.01326155E-06
  3229.8728  4.71998683E-05  5.71238706E-06
  3274.89575  4.5953333E-05  5.42626003E-06
  3320.54614  4.47364728E-05  5.15412512E-06
  3366.83252  4.35484326E-05  4.89508329E-06
  3413.7644  4.23889069E-05  4.6488899E-06
  3461.35059  4.12577319E-05  4.41475231E-06
  3509.59961  4.01544639E-05  4.19210528E-06
  3558.52148  3.90786226E-05  3.98049087E-06
  3608.12549  3.80296697E-05  3.77931656E-06
  3658.4209  3.70070447E-05  3.58799957E-06
  3709.41724  3.60102749E-05  3.40623365E-06
  3761.12451  3.50385126E-05  3.2335015E-06
  3813.55249  3.40915503E-05  3.06924267E-06
  3866.71143  3.31689771E-05  2.91322522E-06
  3920.61133  3.22701235E-05  2.76498076E-06
  3975.26221  3.13945202E-05  2.62412141E-06
  4030.67554  3.05417379E-05  2.49031245E-06
  4086.86084  2.97112274E-05  2.36323581E-06
  4143.82959  2.89023374E-05  2.24244809E-06
  4201.59229  2.8114544E-05  2.12777468E-06
  4260.16016  2.73476471E-05  2.01887042E-06
  4319.54443  2.66010393E-05  1.91543245E-06
  4379.75635  2.5874162E-05  1.81720804E-06
  4440.80811  2.51665933E-05  1.72394891E-06
  4502.71045  2.44779712E-05  1.63538061E-06
  4565.47559  2.38075663E-05  1.5512943E-06
  4629.11572  2.31551239E-05  1.47147034E-06
  4693.64355  2.25202148E-05  1.39566112E-06
  4759.07031  2.19023859E-05  1.32371417E-06
  4825.40918  2.13011244E-05  1.25544216E-06
  4892.67285  2.07160683E-05  1.19064327E-06
  4960.87402  2.01469411E-05  1.12914108E-06
  5030.02588  1.95931552E-05  1.07078915E-06
  5100.14209  1.90542432E-05  1.01535056E-06
  5171.23486  1.85300687E-05  9.62764375E-07
  5243.31885  1.80200695E-05  9.12889163E-07
  5316.4082  1.75239475E-05  8.65561162E-07
  5390.51611  1.70414023E-05  8.20653099E-07
  5465.65723  1.65720376E-05  7.78052936E-07
  5541.84521  1.61154421E-05  7.37626635E-07
  5619.09521  1.56713395E-05  6.99271311E-07
  5697.42285  1.5239305E-05  6.62889533E-07
  5776.8418  1.48191621E-05  6.28380974E-07
  5857.36768  1.44105052E-05  5.95653944E-07
  5939.01611  1.40130433E-05  5.64611696E-07
  6021.80273  1.36265226E-05  5.3516186E-07
  6105.74316  1.3250602E-05  5.07233381E-07
  6190.85449  1.28850488E-05  4.80753499E-07
  6277.15186  1.25295091E-05  4.55644425E-07
  6364.65137  1.21837902E-05  4.31834707E-07
  6453.37158  1.18474873E-05  4.09225493E-07
  6543.32812  1.15205021E-05  3.87819483E-07
  6634.53809  1.12025409E-05  3.67521352E-07
  6727.02051  1.08933518E-05  3.4826374E-07
  6820.7915  1.05926965E-05  3.30007055E-07
  6915.86914  1.0300304E-05  3.12702952E-07
  7012.27295  1.00159814E-05  2.96297372E-07
  7110.02002  9.73952319E-06  2.80743109E-07
  7209.12988  9.47066019E-06  2.66000256E-07
  7309.62109  9.20926777E-06  2.52025586E-07
  7411.51318  8.95503672E-06  2.3877385E-07
  7514.82617  8.70786153E-06  2.26214837E-07
  7619.57861  8.46752118E-06  2.14312749E-07
  7725.79102  8.23383743E-06  2.0303159E-07
  7833.48438  8.00661019E-06  1.92338419E-07
  7942.67969  7.78562753E-06  1.82204843E-07
  8053.396  7.57078396E-06  1.72600394E-07
  8165.65625  7.36191168E-06  1.63498015E-07
  8279.48047  7.15876604E-06  1.54872822E-07
  8394.89258  6.96127518E-06  1.4669881E-07
  8511.91211  6.76923673E-06  1.3895324E-07
  8630.56348  6.58249201E-06  1.31613803E-07
  8750.86914  6.40093049E-06  1.24658911E-07
  8872.85156  6.22440621E-06  1.18068876E-07
  8996.53418  6.05275E-06  1.11826488E-07
  9121.94141  5.88582634E-06  1.05909393E-07
  9249.0957  5.72353292E-06  1.00304291E-07
  9378.02344  5.56572149E-06  9.49948813E-08
  9508.74805  5.41227519E-06  8.99642316E-08
  9641.29492  5.26308577E-06  8.5197577E-08
  9775.68848  5.11803228E-06  8.06824332E-08
  9911.95703  4.9769742E-06  7.64050512E-08
  10050.125  4.83983285E-06  7.23531315E-08
  10190.2178  4.70647137E-06  6.85141828E-08
  10332.2637  4.57680198E-06  6.48780443E-08
  10476.29  4.45071464E-06  6.14336386E-08
  10622.3232  4.32811703E-06  5.81710218E-08
  10770.3926  4.2089282E-06  5.50811237E-08
  10920.5264  4.09299901E-06  5.21538368E-08
  11072.7529  3.9802876E-06  4.9382205E-08
  11227.1006  3.87069986E-06  4.67564334E-08
  11383.6006  3.764148E-06  4.42697718E-08
  11542.2822  3.66053609E-06  4.19147952E-08
  11703.1748  3.55977681E-06  3.96844406E-08
  11866.3105  3.46179445E-06  3.75721072E-08
  12031.7207  3.36652624E-06  3.55717553E-08
  12199.4365  3.2738983E-06  3.36775905E-08
  12369.4902  3.1838365E-06  3.18840279E-08
  12541.9141  3.0962542E-06  3.01852836E-08
  12716.7412  3.01108139E-06  2.85767587E-08
  12894.0059  2.92825825E-06  2.70537868E-08
  13073.7412  2.84772796E-06  2.5611719E-08
  13255.9824  2.76942478E-06  2.42464786E-08
  13440.7637  2.69327461E-06  2.29533068E-08
  13628.1211  2.6192331E-06  2.17292637E-08
  13818.0889  2.54724046E-06  2.05702548E-08
  14010.7061  2.47722937E-06  1.94727861E-08
  14206.0068  2.40914301E-06  1.84338926E-08
  14404.0312  2.34293179E-06  1.745045E-08
  14604.8164  2.27855162E-06  1.65191132E-08
  14808.3994  2.21595269E-06  1.56375837E-08
  15014.8203  2.15507339E-06  1.48029295E-08
  15224.1182  2.09587711E-06  1.40124419E-08
  15436.335  2.03830905E-06  1.32641942E-08
  15651.5098  1.98232783E-06  1.25558541E-08
  15869.6816  1.92789071E-06  1.18852492E-08
  16090.8965  1.87495016E-06  1.1250477E-08
  16315.1953  1.82347219E-06  1.0649627E-08
  16542.6191  1.77340814E-06  1.00807807E-08
  16773.2148  1.7247271E-06  9.54238999E-09
  17007.0254  1.67738381E-06  9.03282604E-09
  17244.0938  1.63134564E-06  8.55049098E-09
  17484.4668  1.58657576E-06  8.09394507E-09
  17728.1914  1.54303621E-06  7.66183472E-09
  17975.3125  1.50069866E-06  7.2528854E-09
  18225.8789  1.45952288E-06  6.86581458E-09
  18479.9375  1.41947669E-06  6.49945342E-09
  18737.5371  1.38053576E-06  6.15268858E-09
  18998.7285  1.34266986E-06  5.82453508E-09
  19263.5605  1.3058459E-06  5.51399726E-09
  19532.084  1.27003193E-06  5.22012034E-09
  19804.3516  1.23520067E-06  4.94198149E-09
  20080.4141  1.20133143E-06  4.67860817E-09
  20360.3223  1.16839112E-06  4.42934578E-09
  20644.1348  1.13635372E-06  4.19358326E-09
  20931.9023  1.10519909E-06  3.97057232E-09
  21223.6816  1.07490109E-06  3.75962861E-09
  21519.5293  1.04543562E-06  3.56009666E-09
  21819.5  1.01678211E-06  3.3713794E-09
  22123.6523  9.88914053E-07  3.19287818E-09
  22432.0449  9.61809519E-07  3.02399839E-09
  22744.7324  9.35453215E-07  2.86427793E-09
  23061.7832  9.09819619E-07  2.713197E-09
  23383.252  8.8488855E-07  2.57028843E-09
  23709.2012  8.60642558E-07  2.43511944E-09
  24039.6953  8.37064192E-07  2.30727015E-09
  24374.7949  8.14131909E-07  2.18633445E-09
  24714.5664  7.9183252E-07  2.0719253E-09
  25059.0742  7.70144084E-07  1.96371119E-09
  25408.3848  7.49049491E-07  1.86134808E-09
  25762.5645  7.28532768E-07  1.76451531E-09
  26121.6797  7.08579819E-07  1.67292191E-09
  26485.8008  6.8917592E-07  1.58628288E-09
  26855.  6.70303166E-07  1.504324E-09
  27229.3438  6.51947346E-07  1.42679601E-09
  27608.9062  6.34097773E-07  1.3534438E-09
  27993.7598  6.16737168E-07  1.28405508E-09
  28383.9766  5.99851944E-07  1.21841592E-09
  28779.6348  5.83430506E-07  1.15631749E-09
  29180.8066  5.67459608E-07  1.09756537E-09
  29587.5723  5.51924188E-07  1.04197861E-09
  30000.0059  5.36819186E-07  9.89393789E-10];
end

if(Material == 'Di')
RefractiveData =[ 30.  0.496328741  0.358168721
  30.4181843  0.486987412  0.34238863
  30.8421955  0.477445602  0.327300042
  31.2721214  0.467828959  0.312874705
  31.7080383  0.458164096  0.299086988
  32.150032  0.448494494  0.28590548
  32.5981827  0.43885684  0.273305774
  33.0525818  0.429266632  0.261261433
  33.5133171  0.419737905  0.249747917
  33.9804764  0.410278648  0.238741741
  34.4541473  0.400887012  0.228220031
  34.9344177  0.391539514  0.218163103
  35.4213829  0.382254928  0.208778203
  35.9151382  0.373240739  0.199839637
  36.4157791  0.36444208  0.191291645
  36.9233932  0.355832309  0.183109641
  37.4380875  0.347406179  0.175277457
  37.9599533  0.339165807  0.167780042
  38.4890938  0.331116319  0.160604402
  39.0256119  0.323396087  0.15373452
  39.5696068  0.315941244  0.146891356
  40.1211853  0.308434457  0.140118167
  40.6804543  0.300883532  0.133574799
  41.2475166  0.29336217  0.127336949
  41.8224831  0.285911858  0.121390447
  42.405468  0.27854833  0.115721956
  42.9965744  0.271266252  0.110317715
  43.5959282  0.264072567  0.105165556
  44.2036324  0.256926239  0.100254685
  44.8198051  0.249807179  0.0956031159
  45.4445686  0.242790401  0.0913954601
  46.0780411  0.236010119  0.0876563191
  46.7203445  0.229570672  0.0840699971
  47.3715973  0.223360494  0.080630742
  48.0319328  0.217343628  0.0773322731
  48.7014732  0.211499423  0.0741686597
  49.3803444  0.205815628  0.0711343363
  50.0686798  0.200282201  0.0682241097
  50.7666092  0.194889814  0.0654329285
  51.4742699  0.18962878  0.0627557859
  52.1917915  0.184486702  0.0601882488
  52.9193192  0.179426283  0.0577261448
  53.6569862  0.174419329  0.0554907843
  54.4049339  0.169623792  0.0534470901
  55.163311  0.165045321  0.0515173562
  55.9322586  0.16064541  0.0496571995
  56.7119217  0.156399146  0.0478641056
  57.5024567  0.152296007  0.0461357683
  58.3040123  0.148334444  0.0444701128
  59.1167336  0.144509897  0.0428643636
  59.9407921  0.14083001  0.0413166434
  60.7763329  0.137317911  0.0397841893
  61.6235237  0.133917391  0.0382077619
  62.4825172  0.130546734  0.0365907662
  63.3534927  0.127190992  0.035042312
  64.2366028  0.123887852  0.0335591771
  65.1320343  0.12064933  0.0321387611
  66.0399323  0.117480069  0.030778585
  66.960495  0.114381336  0.0294759907
  67.8938904  0.111353606  0.0282285325
  68.8402939  0.108396739  0.0270338897
  69.7998886  0.105510339  0.0258898195
  70.7728577  0.102693401  0.0247939881
  71.7593994  0.0999442413  0.0237446539
  72.7596817  0.0972631499  0.0227397997
  73.7739182  0.0946487337  0.0217774138
  74.8022842  0.0920997411  0.0208557677
  75.844986  0.0896149352  0.0199731514
  76.9022217  0.0871930271  0.01912787
  77.9741974  0.0848326683  0.0183182992
  79.0611115  0.0825318694  0.0175430644
  80.1631851  0.0802901685  0.0168005992
  81.2806168  0.0781061798  0.0160895605
  82.4136276  0.0759784877  0.0154086221
  83.5624237  0.0739059076  0.0147565054
  84.7272415  0.0718872249  0.0141319828
  85.9082947  0.0699209571  0.0135338828
  87.1058121  0.0680055991  0.0129611185
  88.320015  0.0661403313  0.0124125769
  89.5511475  0.0643239245  0.0118872477
  90.7994385  0.062555179  0.0113841584
  92.0651398  0.0608329251  0.0109023592
  93.3484802  0.0591560453  0.0104409475
  94.649704  0.0575233549  0.00999907311
  95.9690704  0.0559337772  0.00957590155
  97.3068314  0.054385934  0.00917062536
  98.6632385  0.0528791137  0.00878250692
  100.038544  0.0514122918  0.00841081142
  101.433029  0.0499844253  0.00805484038
  102.846954  0.048594512  0.00771394419
  104.280579  0.047241576  0.00738749932
  105.734192  0.0459246747  0.00707482034
  107.208076  0.0446425974  0.00677542062
  108.702492  0.0433947332  0.00648867059
  110.217751  0.0421802066  0.00621404406
  111.754128  0.0409981348  0.00595104508
  113.311913  0.0398477092  0.00569918146
  114.891418  0.0387281068  0.00545798521
  116.492943  0.0376384594  0.00522701815
  118.116798  0.0365778953  0.00500578294
  119.763275  0.0355456881  0.00479393266
  121.432716  0.0345412903  0.00459104637
  123.125427  0.0335639156  0.00439674174
  124.841721  0.0326129235  0.00421066815
  126.581955  0.0316877365  0.00403247494
  128.346436  0.0307877213  0.0038617875
  130.135513  0.0299125612  0.00369835901
  131.949539  0.0290630646  0.00354185281
  133.788834  0.0282357484  0.00338649214
  135.653778  0.0274284687  0.00323625584
  137.544724  0.0266407803  0.00309268036
  139.462021  0.0258728769  0.00295547117
  141.406052  0.0251246504  0.00282435189
  143.377167  0.0243956875  0.00269906619
  145.375778  0.0236853156  0.00257931952
  147.402222  0.0229934603  0.00246489211
  149.45694  0.0223196447  0.00235554227
  151.540268  0.0216633938  0.002251036
  153.652664  0.0210242551  0.00215116469
  155.794495  0.0204018299  0.00205574161
  157.966202  0.0197955929  0.00196453882
  160.168167  0.0192047339  0.00187737413
  162.400818  0.018629251  0.00179408374
  164.664597  0.0180686861  0.00171449943
  166.95993  0.01752262  0.00163843809
  169.287262  0.0169906523  0.0015657458
  171.647034  0.0164723955  0.00149628392
  174.039703  0.0159674902  0.00142990646
  176.465729  0.0154752722  0.001366465
  178.925552  0.0149956122  0.0013058444
  181.419678  0.0145284608  0.00124791509
  183.948563  0.0140749337  0.00119255052
  186.512726  0.0136332093  0.00113659515
  189.112595  0.0132003631  0.00107916677
  191.748734  0.0127751008  0.00102453504
  194.4216  0.0123581756  0.000972680224
  197.131729  0.0119493539  0.000923445157
  199.879639  0.0115490211  0.000876700506
  202.665863  0.0111569101  0.000832321821
  205.490906  0.0107726986  0.000790192978
  208.355347  0.0103959953  0.000750195817
  211.259705  0.0100263925  0.000712217938
  214.204544  0.00966338161  0.000676169933
  217.190445  0.00930526014  0.0006419415
  220.217957  0.00895224977  0.000609794573
  223.287674  0.00860456284  0.000579893182
  226.400192  0.00826163497  0.000551727135
  229.556091  0.00792258885  0.000524927978
  232.755981  0.00758649781  0.00049942953
  236.000458  0.00725237234  0.000475171022
  239.290176  0.00691687735  0.000452089269
  242.625763  0.00657957047  0.000430131506
  246.007828  0.00624039955  0.000408596039
  249.437057  0.00589460507  0.000386118045
  252.914062  0.00553760864  0.000363529049
  256.439545  0.00516527053  0.000342262443
  260.01416  0.00477242004  0.000322238018
  263.638641  0.00434403215  0.000303386041
  267.313599  0.00385798374  0.000285638147
  271.039825  0.00328379287  0.000268927222
  274.817963  0.00254316302  0.000253193633
  278.648773  0.00137187436  0.000238381152
  282.53299 -0.00239146408  0.000224435425
  286.471375 -0.000150937107  0.00611820444
  290.4646  0.00198474596  0.00585151045
  294.513519  0.00289568165  0.00559643004
  298.618896  0.00346968719  0.00535247568
  302.781494  0.00386046665  0.00511914073
  307.002106  0.00413779635  0.00489598839
  311.281525  0.00433798367  0.00468258141
  315.620605  0.00448247232  0.00447845552
  320.020203  0.00458493968  0.0042832219
  324.48111  0.00465156417  0.00409650197
  329.004181  0.0046934709  0.00391794555
  333.590363  0.00471534114  0.00374715589
  338.240417  0.00472068926  0.00358380005
  342.955322  0.00471231341  0.00342757162
  347.735901  0.00469252001  0.00327816559
  352.58316  0.00466323085  0.00313526881
  357.497986  0.00462545315  0.00299859629
  362.481323  0.00458113896  0.00286788354
  367.534119  0.00453195628  0.00274286536
  372.657349  0.00447966438  0.00262329541
  377.85199  0.00442482904  0.00250664074
  383.119019  0.00436647702  0.00239126547
  388.459473  0.00430281041  0.00227887928
  393.87439  0.00423387811  0.0021717737
  399.364807  0.00416188268  0.002069704
  404.931732  0.00408786861  0.00197242829
  410.576233  0.00401234813  0.00187972386
  416.299469  0.00393573102  0.00179137732
  422.102448  0.00385836465  0.00170718518
  427.986359  0.00378055475  0.00162694557
  433.95224  0.00370253343  0.00155047642
  440.001282  0.00362432352  0.00147760636
  446.134674  0.00354639487  0.00140816043
  452.353577  0.00346889952  0.00134197518
  458.659119  0.00339197717  0.00127890427
  465.052582  0.00331575656  0.00121879845
  471.535156  0.00324035808  0.00116151478
  478.108093  0.00316590234  0.00110692543
  484.772644  0.00309254765  0.0010548631
  491.530151  0.00302007049  0.00100467016
  498.381775  0.00294840685  0.000956783828
  505.328979  0.00287768804  0.00091117766
  512.372986  0.00280803046  0.000867746712
  519.515198  0.00273949513  0.000826387026
  526.756958  0.00267212675  0.000786996388
  534.09967  0.00260591786  0.00074948289
  541.544739  0.00254090154  0.000713759277
  549.093506  0.00247713528  0.000679738005
  556.74762  0.0024146284  0.000647338049
  564.508362  0.00235338602  0.000616481761
  572.377319  0.00229340931  0.00058709539
  580.355957  0.00223469967  0.000559112639
  588.445801  0.00217724056  0.000532464532
  596.648438  0.00212101266  0.000507084187
  604.965332  0.00206603808  0.000482913136
  613.398315  0.00201230333  0.000459895236
  621.948669  0.00195979909  0.000437974581
  630.618347  0.00190850906  0.000417097646
  639.408813  0.0018584166  0.000397217169
  648.321838  0.00180950284  0.00037828277
  657.35907  0.00176171726  0.0003602535
  666.522278  0.001715024  0.000343080756
  675.813293  0.00166940549  0.000326919166
  685.233704  0.00162501493  0.00031174178
  694.785522  0.00158209493  0.000297418475
  704.470398  0.00154073176  0.000283633446
  714.290344  0.00150059152  0.000269864278
  724.247192  0.00146094058  0.000256294821
  734.342834  0.00142202014  0.000243409158
  744.579163  0.00138394663  0.000231171944
  754.958191  0.00134674879  0.000219549765
  765.481934  0.00131043477  0.000208510639
  776.152344  0.001275004  0.000198024572
  786.971436  0.00124044856  0.000188063146
  797.941406  0.00120675145  0.000178600341
  809.06427  0.00117389904  0.000169612278
  820.342224  0.00114188821  0.000161077493
  831.777283  0.00111070718  0.000152973327
  843.371826  0.0010803428  0.000145269572
  855.127991  0.00105077541  0.000137940006
  867.047974  0.00102197856  0.000130966233
  879.134155  0.000993925845  0.000124332888
  891.388855  0.000966600259  0.000118036689
  903.814331  0.000940000056  0.000112059555
  916.413025  0.000914111617  0.000106385436
  929.187317  0.000888917944  0.000100988836
  942.139648  0.000864397094  9.5856034E-05
  955.272583  0.000840527995  9.09816808E-05
  968.588562  0.000817299413  8.63532259E-05
  982.09021  0.000794694817  8.1958482E-05
  995.779968  0.000772700761  7.77882888E-05
  1009.66058  0.00075130508  7.38308881E-05
  1023.7348  0.000730501197  7.00784585E-05
  1038.005  0.000710278109  6.65092157E-05
  1052.47424  0.000690610555  6.31005823E-05
  1067.14514  0.000671462796  5.98473016E-05
  1082.02051  0.0006528261  5.67631796E-05
  1097.10339  0.000634696044  5.38369859E-05
  1112.39636  0.00061706081  5.1060073E-05
  1127.90259  0.000599907595  4.84271586E-05
  1143.62488  0.000583225628  4.59309995E-05
  1159.56641  0.000567003619  4.35634902E-05
  1175.73022  0.000551229576  4.13176313E-05
  1192.11926  0.000535892323  3.91881331E-05
  1208.73682  0.000520981615  3.71681563E-05
  1225.58594  0.000506486278  3.52519201E-05
  1242.66992  0.000492396881  3.34295801E-05
  1259.99194  0.000478700473  3.16952901E-05
  1277.55554  0.000465381367  3.00440715E-05
  1295.36401  0.000452425331  2.84728012E-05
  1313.42078  0.000439824653  2.69841275E-05
  1331.72913  0.000427572668  2.55732375E-05
  1350.29272  0.000415660295  2.42358365E-05
  1369.11511  0.00040407863  2.29684665E-05
  1388.19983  0.000392818998  2.17674788E-05
  1407.55054  0.000381873193  2.06292571E-05
  1427.17102  0.00037123292  1.95504381E-05
  1447.06506  0.000360889477  1.85279787E-05
  1467.23621  0.000350836141  1.75586447E-05
  1487.68884  0.000341063336  1.66390582E-05
  1508.42639  0.000331564253  1.57650538E-05
  1529.453  0.000322329026  1.49358902E-05
  1550.77271  0.00031335064  1.41501268E-05
  1572.38977  0.000304622838  1.34056381E-05
  1594.30786  0.000296138867  1.27003223E-05
  1616.53174  0.000287891686  1.20321183E-05
  1639.06531  0.000279875589  1.13990327E-05
  1661.91296  0.000272083591  1.07992964E-05
  1685.0791  0.000264510105  1.02311487E-05
  1708.56824  0.000257149106  9.69295706E-06
  1732.38477  0.000249994773  9.18236401E-06
  1756.53333  0.00024304098  8.69691848E-06
  1781.01831  0.000236280321  8.23648861E-06
  1805.84485  0.000229708559  7.79990569E-06
  1831.01721  0.00022332005  7.38646349E-06
  1856.54065  0.000217110079  6.99498378E-06
  1882.41992  0.000211073871  6.62427465E-06
  1908.65979  0.000205206452  6.2732106E-06
  1935.2655  0.000199502902  5.94075709E-06
  1962.24194  0.000193958971  5.62593459E-06
  1989.59473  0.00018857028  5.32775766E-06
  2017.32861  0.000183332624  5.04669924E-06
  2045.44897  0.000178242597  4.77899994E-06
  2073.96143  0.000173294582  4.52482618E-06
  2102.87134  0.000168484359  4.28406111E-06
  2132.18433  0.000163808494  4.05598757E-06
  2161.90576  0.000159263174  3.83993302E-06
  2192.0415  0.000154844951  3.63529489E-06
  2222.59741  0.000150550215  3.44141426E-06
  2253.57935  0.000146375416  3.25780957E-06
  2284.99292  0.000142317003  3.08390986E-06
  2316.84448  0.000138371906  2.91921083E-06
  2349.13989  0.000134537055  2.76321566E-06
  2381.8855  0.000130809  2.61541959E-06
  2415.08789  0.000127185122  2.47552134E-06
  2448.75293  0.000123662321  2.34303184E-06
  2482.88721  0.000120237775  2.21752157E-06
  2517.49707  0.000116908763  2.09869904E-06
  2552.58984  0.000113672453  1.98620091E-06
  2588.17163  0.000110526351  1.87965611E-06
  2624.24927  0.000107468048  1.77874836E-06
  2660.82983  0.000104494837  1.68328586E-06
  2697.92041  0.000101604579  1.59278954E-06
  2735.52783  9.87947351E-05  1.5071422E-06
  2773.65967  9.60631296E-05  1.42606552E-06
  2812.323  9.34075215E-05  1.34934305E-06
  2851.52539  9.08257934E-05  1.27668375E-06
  2891.27393  8.83159228E-05  1.20784171E-06
  2931.57666  8.58758067E-05  1.14275485E-06
  2972.44141  8.35036335E-05  1.08109725E-06
  3013.87549  8.1197526E-05  1.02273907E-06
  3055.88745  7.8955396E-05  9.67492269E-07
  3098.48486  7.67755628E-05  9.1519604E-07
  3141.67603  7.46563092E-05  8.65698155E-07
  3185.46924  7.25959035E-05  8.18851163E-07
  3229.8728  7.05926795E-05  7.74512159E-07
  3274.89575  6.8645073E-05  7.32543413E-07
  3320.54614  6.6751556E-05  6.92820095E-07
  3366.83252  6.49105859E-05  6.55231645E-07
  3413.7644  6.31206713E-05  6.19658749E-07
  3461.35059  6.13804004E-05  5.85992382E-07
  3509.59961  5.96884056E-05  5.5413409E-07
  3558.52148  5.80433189E-05  5.23987012E-07
  3608.12549  5.64438342E-05  4.95458437E-07
  3658.4209  5.48886565E-05  4.68463497E-07
  3709.41724  5.33765851E-05  4.42923692E-07
  3761.12451  5.19063578E-05  4.18758674E-07
  3813.55249  5.04768432E-05  3.95891988E-07
  3866.71143  4.90869315E-05  3.74258406E-07
  3920.61133  4.77354879E-05  3.53795855E-07
  3975.26221  4.64213772E-05  3.34442205E-07
  4030.67554  4.51436681E-05  3.16223549E-07
  4086.86084  4.39013602E-05  2.9890586E-07
  4143.82959  4.26933875E-05  2.8251489E-07
  4201.59229  4.15188078E-05  2.67017469E-07
  4260.16016  4.03766826E-05  2.52364202E-07
  4319.54443  3.92661204E-05  2.38507027E-07
  4379.75635  3.81862374E-05  2.25407334E-07
  4440.80811  3.71361893E-05  2.13022631E-07
  4502.71045  3.61151651E-05  2.01310783E-07
  4565.47559  3.51223352E-05  1.90237202E-07
  4629.11572  3.41569248E-05  1.79767E-07
  4693.64355  3.32181589E-05  1.69868926E-07
  4759.07031  3.23053027E-05  1.6051375E-07
  4825.40918  3.14176177E-05  1.51670577E-07
  4892.67285  3.05544781E-05  1.43311155E-07
  4960.87402  2.97151273E-05  1.35408811E-07
  5030.02588  2.88989067E-05  1.27939344E-07
  5100.14209  2.81051944E-05  1.20877587E-07
  5171.23486  2.73333881E-05  1.14204333E-07
  5243.31885  2.65828712E-05  1.07897982E-07
  5316.4082  2.58530326E-05  1.0193579E-07
  5390.51611  2.51432666E-05  9.63005675E-08
  5465.65723  2.44530875E-05  9.09736357E-08
  5541.84521  2.37819422E-05  8.59403215E-08
  5619.09521  2.31292797E-05  8.1186954E-08
  5697.42285  2.24945798E-05  7.66948105E-08
  5776.8418  2.18773494E-05  7.24481666E-08
  5857.36768  2.12771138E-05  6.84348578E-08
  5939.01611  2.06934146E-05  6.46425278E-08
  6021.80273  2.0125759E-05  6.10611011E-08
  6105.74316  1.95737484E-05  5.76774468E-08
  6190.85449  1.90369228E-05  5.44787575E-08
  6277.15186  1.85148674E-05  5.1456734E-08
  6364.65137  1.80071729E-05  4.86023346E-08
  6453.37158  1.75134319E-05  4.59058533E-08
  6543.32812  1.70332569E-05  4.33585967E-08
  6634.53809  1.65663132E-05  4.09525462E-08
  6727.02051  1.6112208E-05  3.86794667E-08
  6820.7915  1.56705719E-05  3.65326507E-08
  6915.86914  1.52410757E-05  3.45050104E-08
  7012.27295  1.48233839E-05  3.25896004E-08
  7110.02002  1.44171681E-05  3.07804484E-08
  7209.12988  1.40221055E-05  2.90721545E-08
  7309.62109  1.36378994E-05  2.7458718E-08
  7411.51318  1.3264259E-05  2.59353801E-08
  7514.82617  1.29008686E-05  2.44963534E-08
  7619.57861  1.25474644E-05  2.31375861E-08
  7725.79102  1.220377E-05  2.1854758E-08
  7833.48438  1.18695116E-05  2.06433981E-08
  7942.67969  1.15444209E-05  1.94994776E-08
  8053.396  1.12282487E-05  1.84191435E-08
  8165.65625  1.09207658E-05  1.739879E-08
  8279.48047  1.06217194E-05  1.6435429E-08
  8394.89258  1.03308812E-05  1.55258419E-08
  8511.91211  1.00480165E-05  1.46671404E-08
  8630.56348  9.77291347E-06  1.38565897E-08
  8750.86914  9.5053656E-06  1.3091447E-08
  8872.85156  9.24514552E-06  1.23689832E-08
  8996.53418  8.99207316E-06  1.16869536E-08
  9121.94141  8.74593934E-06  1.10432312E-08
  9249.0957  8.50655397E-06  1.0435576E-08
  9378.02344  8.27372878E-06  9.86212534E-09
  9508.74805  8.04728734E-06  9.32089428E-09
  9641.29492  7.82705501E-06  8.80996076E-09
  9775.68848  7.61286674E-06  8.32760882E-09
  9911.95703  7.40453743E-06  7.87255594E-09
  10050.125  7.2019302E-06  7.44280904E-09
  10190.2178  7.00486817E-06  7.03701497E-09
  10332.2637  6.8132108E-06  6.65401378E-09
  10476.29  6.62680759E-06  6.29256292E-09
  10622.3232  6.44551028E-06  5.95147576E-09
  10770.3926  6.26917517E-06  5.62957458E-09
  10920.5264  6.09767858E-06  5.32582156E-09
  11072.7529  5.93087361E-06  5.03916064E-09
  11227.1006  5.76864568E-06  4.7685953E-09
  11383.6006  5.61085744E-06  4.51329019E-09
  11542.2822  5.45738885E-06  4.27238644E-09
  11703.1748  5.30812622E-06  4.04508471E-09
  11866.3105  5.16294904E-06  3.83060117E-09
  12031.7207  5.02174362E-06  3.62819419E-09
  12199.4365  4.88441265E-06  3.43723383E-09
  12369.4902  4.75083789E-06  3.25698468E-09
  12541.9141  4.62092112E-06  3.08692338E-09
  12716.7412  4.4945632E-06  2.92645619E-09
  12894.0059  4.37166182E-06  2.77505352E-09
  13073.7412  4.25212284E-06  2.63219002E-09
  13255.9824  4.13585803E-06  2.49734833E-09
  13440.7637  4.02277738E-06  2.37012654E-09
  13628.1211  3.91278809E-06  2.2500477E-09
  13818.0889  3.80581514E-06  2.13675677E-09
  14010.7061  3.70176508E-06  2.02983075E-09
  14206.0068  3.60056379E-06  1.92892169E-09
  14404.0312  3.50213372E-06  1.8336942E-09
  14604.8164  3.40639417E-06  1.74380921E-09
  14808.3994  3.31327237E-06  1.65899994E-09
  15014.8203  3.22270034E-06  1.57889923E-09
  15224.1182  3.13460896E-06  1.50293022E-09
  15436.335  3.04892546E-06  1.43120038E-09
  15651.5098  2.96558642E-06  1.36347389E-09
  15869.6816  2.88452793E-06  1.29952316E-09
  16090.8965  2.80568543E-06  1.23913668E-09
  16315.1953  2.7290007E-06  1.18211008E-09
  16542.6191  2.65441281E-06  1.12823673E-09
  16773.2148  2.58186583E-06  1.07734877E-09
  17007.0254  2.511302E-06  1.02927455E-09
  17244.0938  2.44266926E-06  9.83850446E-10
  17484.4668  2.37591371E-06  9.40932998E-10
  17728.1914  2.31098306E-06  9.00376385E-10
  17975.3125  2.24782934E-06  8.62032168E-10
  18225.8789  2.18640162E-06  8.25794044E-10
  18479.9375  2.12665236E-06  7.91529675E-10
  18737.5371  2.06853861E-06  7.59125873E-10
  18998.7285  2.01201328E-06  7.28479221E-10
  19263.5605  1.95703365E-06  6.99488023E-10
  19532.084  1.90355831E-06  6.7205902E-10
  19804.3516  1.85154352E-06  6.46380893E-10
  20080.4141  1.8009506E-06  6.23623486E-10
  20360.3223  1.75174512E-06  5.99398475E-10
  20644.1348  1.70388171E-06  5.76410308E-10
  20931.9023  1.65732592E-06  5.54646551E-10
  21223.6816  1.61204343E-06  5.34034594E-10
  21519.5293  1.56799888E-06  5.1450455E-10
  21819.5  1.52515793E-06  4.9599358E-10
  22123.6523  1.48348761E-06  4.78440565E-10
  22432.0449  1.44295768E-06  4.6179105E-10
  22744.7324  1.40353552E-06  4.45991605E-10
  23061.7832  1.36518986E-06  4.3099263E-10
  23383.252  1.32789307E-06  4.16746915E-10
  23709.2012  1.29161538E-06  4.03210743E-10
  24039.6953  1.25632812E-06  3.90343063E-10
  24374.7949  1.22200629E-06  3.7810502E-10
  24714.5664  1.18862363E-06  3.6646175E-10
  25059.0742  1.15615171E-06  3.55378782E-10
  25408.3848  1.12456758E-06  3.44822337E-10
  25762.5645  1.09384678E-06  3.34762995E-10
  26121.6797  1.06396533E-06  3.25172778E-10
  26485.8008  1.03490061E-06  3.16024734E-10
  26855.  1.00663067E-06  3.07294995E-10
  27229.3438  9.79131642E-07  2.98958969E-10
  27608.9062  9.52385108E-07  2.9099545E-10
  27993.7598  9.26369353E-07  2.83382817E-10
  28383.9766  9.01065164E-07  2.7610178E-10
  28779.6348  8.76451907E-07  2.69133937E-10
  29180.8066  8.52510766E-07  2.62461969E-10
  29587.5723  8.29224177E-07  2.5606961E-10
  30000.0059  8.06572757E-07  2.49941956E-10];
end

if(Material == 'Ni')
RefractiveData =[30.  0.289391518  0.255935937
  30.4181843  0.283550143  0.247024685
  30.8421955  0.277632445  0.238550931
  31.2721214  0.271730721  0.230397359
  31.7080383  0.265782893  0.222523361
  32.150032  0.259795099  0.214918002
  32.5981827  0.253786743  0.207572505
  33.0525818  0.247762755  0.200478226
  33.5133171  0.241722479  0.193626344
  33.9804764  0.235655263  0.187008545
  34.4541473  0.229549646  0.180630118
  34.9344177  0.223429218  0.174565986
  35.4213829  0.217361361  0.168835148
  35.9151382  0.21138519  0.163297653
  36.4157791  0.205465436  0.157941788
  36.9233932  0.199576691  0.152761728
  37.4380875  0.193692252  0.147751436
  37.9599533  0.187764317  0.142905459
  38.4890938  0.181701034  0.138220072
  39.0256119  0.175653815  0.134396493
  39.5696068  0.169932306  0.130710587
  40.1211853  0.164455697  0.127131537
  40.6804543  0.15912804  0.123650469
  41.2475166  0.15386951  0.120264746
  41.8224831  0.148613974  0.116971649
  42.405468  0.143301502  0.113791965
  42.9965744  0.138023585  0.111158095
  43.5959282  0.133061156  0.10880173
  44.2036324  0.128353685  0.106521986
  44.8198051  0.123830356  0.104290262
  45.4445686  0.11944218  0.102105275
  46.0780411  0.115161665  0.0999658927
  46.7203445  0.110955194  0.097871393
  47.3715973  0.106665745  0.0958208665
  48.0319328  0.102341674  0.093954213
  48.7014732  0.0982101262  0.0924816355
  49.3803444  0.0943234786  0.0911316276
  50.0686798  0.0906371623  0.0898014084
  50.7666092  0.0870879367  0.0884906724
  51.4742699  0.083640568  0.0871989429
  52.1917915  0.0802725405  0.0859263316
  52.9193192  0.0769695267  0.0847320333
  53.6569862  0.0737565085  0.0835723206
  54.4049339  0.0706157759  0.0824322253
  55.163311  0.0675295219  0.0813076645
  55.9322586  0.0644851029  0.0801983997
  56.7119217  0.0614900254  0.0791007057
  57.5024567  0.0585823394  0.0779942572
  58.3040123  0.0554986931  0.0765965953
  59.1167336  0.0521469302  0.075224109
  59.9407921  0.0484439544  0.0738761649
  60.7763329  0.0440191142  0.0727770701
  61.6235237  0.0391687974  0.0723607689
  62.4825172  0.03438228  0.072707206
  63.3534927  0.0294972192  0.0730549842
  64.2366028  0.0236772578  0.0734045655
  65.1320343  0.0165002402  0.0777895227
  66.0399323  0.0117463544  0.0847868398
  66.960495  0.00987932831  0.0931128711
  67.8938904  0.0116074476  0.102256
  68.8402939  0.0167771485  0.109615855
  69.7998886  0.0233755093  0.110243991
  70.7728577  0.0282125212  0.110447362
  71.7593994  0.0322385468  0.110436641
  72.7596817  0.0359261334  0.109006427
  73.7739182  0.0387002826  0.107248016
  74.8022842  0.0408328287  0.105517901
  75.844986  0.0427458398  0.103815667
  76.9022217  0.0445707515  0.10206151
  77.9741974  0.0462153517  0.0999360681
  79.0611115  0.0475147702  0.0976980776
  80.1631851  0.0485698096  0.0955101475
  81.2806168  0.0494793244  0.0933713615
  82.4136276  0.0503514074  0.0912803859
  83.5624237  0.0512219444  0.0890456066
  84.7272415  0.0519793704  0.0865214095
  85.9082947  0.0523611307  0.0839744955
  87.1058121  0.052514486  0.0815025792
  88.320015  0.0525064804  0.0791034475
  89.5511475  0.0523719415  0.0767749175
  90.7994385  0.0521016344  0.0745149255
  92.0651398  0.0516860187  0.0723530725
  93.3484802  0.0511729494  0.0703384802
  94.649704  0.0506774187  0.0684967414
  95.9690704  0.0502185188  0.0667032674
  97.3068314  0.0497461595  0.0649567321
  98.6632385  0.0492598414  0.0632559508
  100.038544  0.0487601757  0.0615997352
  101.433029  0.0482484251  0.0599868335
  102.846954  0.047726471  0.058416117
  104.280579  0.0471968912  0.0568865836
  105.734192  0.0466640331  0.0553971305
  107.208076  0.0461425632  0.0539466441
  108.702492  0.045611959  0.0524888523
  110.217751  0.0450631753  0.0510525815
  111.754128  0.0444896147  0.0496515222
  113.311913  0.0438963175  0.048288919
  114.891418  0.0432943441  0.0469637029
  116.492943  0.0426855981  0.0456748828
  118.116798  0.0420747474  0.0444214083
  119.763275  0.0414663367  0.0432023555
  121.432716  0.0408641286  0.0419884101
  123.125427  0.0402431302  0.0407907926
  124.841721  0.0395979062  0.0396221802
  126.581955  0.0389375351  0.038487006
  128.346436  0.0382644124  0.0373843126
  130.135513  0.03757561  0.0363132954
  131.949539  0.0368532836  0.0352729335
  133.788834  0.0360519737  0.0342623517
  135.653778  0.0352505706  0.0334134996
  137.544724  0.0345164761  0.0326812677
  139.462021  0.0338633843  0.0319747701
  141.406052  0.0332573764  0.0312834829
  143.377167  0.0326882228  0.03060719
  145.375778  0.032153111  0.0299454611
  147.402222  0.0316459648  0.0292982068
  149.45694  0.0311666038  0.0286648888
  151.540268  0.0307162832  0.0280451626
  153.652664  0.0302973129  0.0274388399
  155.794495  0.0299260598  0.0268420316
  157.966202  0.0296573769  0.0262385532
  160.168167  0.0293836892  0.0254563894
  162.400818  0.0290056821  0.0246975627
  164.664597  0.0285950657  0.0239613894
  166.95993  0.0281715542  0.02324716
  169.287262  0.0277397484  0.0225542188
  171.647034  0.0273028463  0.0218819603
  174.039703  0.0268631615  0.0212297607
  176.465729  0.0264229849  0.0205969904
  178.925552  0.0259836633  0.0199829657
  181.419678  0.0255469456  0.0193873663
  183.948563  0.0251139347  0.0188094676
  186.512726  0.024685422  0.0182488039
  189.112595  0.0242623352  0.0177049302
  191.748734  0.0238457974  0.0171771478
  194.4216  0.023436768  0.0166651346
  197.131729  0.0230371021  0.0161684118
  199.879639  0.0226561818  0.0156864766
  202.665863  0.0222977828  0.0152188968
  205.490906  0.021951858  0.0147316158
  208.355347  0.0215994157  0.0142180482
  211.259705  0.0212251246  0.0137134716
  214.204544  0.0208388455  0.0132268574
  217.190445  0.0204466768  0.0127574764
  220.217957  0.0200533774  0.0123047475
  223.287674  0.0196604431  0.0118681071
  226.400192  0.0192691684  0.0114469593
  229.556091  0.0188804977  0.0110407444
  232.755981  0.0184950661  0.0106489398
  236.000458  0.0181134194  0.0102710519
  239.290176  0.0177358091  0.0099065695
  242.625763  0.0173629504  0.00955503061
  246.007828  0.0169952419  0.00921595655
  249.437057  0.0166329686  0.00888890494
  252.914062  0.016276367  0.00857347343
  256.439545  0.0159256514  0.00826924015
  260.01416  0.0155810593  0.00797578599
  263.638641  0.0152428234  0.00769276125
  267.313599  0.0149111683  0.00741977338
  271.039825  0.0145866256  0.00715646427
  274.817963  0.0142690716  0.00690250611
  278.648773  0.0139628258  0.00665756455
  282.53299  0.0136692608  0.00641929731
  286.471375  0.0133827999  0.00618153019
  290.4646  0.0130981728  0.00593138766
  294.513519  0.0128065804  0.00569136301
  298.618896  0.0125154182  0.00546105579
  302.781494  0.0122263562  0.00524006132
  307.002106  0.0119403936  0.00502801174
  311.281525  0.0116581293  0.00482455269
  315.620605  0.0113799265  0.00462932279
  320.020203  0.0111060804  0.00444198772
  324.48111  0.01083651  0.00426222663
  329.004181  0.0105717545  0.00408975687
  333.590363  0.0103118848  0.00392426178
  338.240417  0.010056993  0.00376545708
  342.955322  0.00980715547  0.00361308036
  347.735901  0.00956242438  0.00346687646
  352.58316  0.0093228044  0.00332658412
  357.497986  0.00908838212  0.00319196633
  362.481323  0.00885936338  0.00306279957
  367.534119  0.00863688346  0.00293885614
  372.657349  0.00841941405  0.00281719235
  377.85199  0.00820570067  0.00269805733
  383.119019  0.00799517054  0.00258317287
  388.459473  0.00778776035  0.00247317832
  393.87439  0.00758413784  0.00236787274
  399.364807  0.00738441804  0.00226704869
  404.931732  0.00718885427  0.00217051595
  410.576233  0.00699746981  0.00207809242
  416.299469  0.00681022555  0.00198960467
  422.102448  0.00662709586  0.00190488866
  427.986359  0.0064480654  0.00182377745
  433.95224  0.00627305778  0.00174611609
  440.001282  0.00610196916  0.00167176512
  446.134674  0.00593483588  0.00160058239
  452.353577  0.00577164022  0.00153242832
  458.659119  0.00561233889  0.00146717776
  465.052582  0.00545687182  0.00140470557
  471.535156  0.00530519336  0.00134489266
  478.108093  0.00515729748  0.00128762715
  484.772644  0.00501320977  0.00123279775
  491.530151  0.00487328274  0.00118030421
  498.381775  0.0047377632  0.00112904655
  505.328979  0.00460546603  0.00107748446
  512.372986  0.00447493093  0.00102663913
  519.515198  0.00434563775  0.000978191267
  526.756958  0.00421859371  0.000932029157
  534.09967  0.00409391336  0.000888048206
  541.544739  0.0039716363  0.000846138922
  549.093506  0.00385186449  0.000806209689
  556.74762  0.00373459095  0.000768163707
  564.508362  0.0036197661  0.000731913722
  572.377319  0.00350731984  0.00069737446
  580.355957  0.00339719257  0.000664464838
  588.445801  0.00328925508  0.00063310843
  596.648438  0.00318316161  0.000603231485
  604.965332  0.0030785983  0.000574764272
  613.398315  0.00297621056  0.000548900571
  621.948669  0.00287631433  0.000525104173
  630.618347  0.00277900277  0.000502584036
  639.408813  0.0026841904  0.000481030205
  648.321838  0.00259143836  0.000460401381
  657.35907  0.00250030798  0.000440656673
  666.522278  0.00241082557  0.000421758479
  675.813293  0.00232285168  0.00040367106
  685.233704  0.00223626685  0.000386359257
  694.785522  0.00215096399  0.000369789341
  704.470398  0.00206697453  0.000353930431
  714.290344  0.00198452082  0.000338574406
  724.247192  0.00190278876  0.000321042258
  734.342834  0.00181780255  0.000300530111
  744.579163  0.00172745076  0.000280914974
  754.958191  0.00163522491  0.000267110445
  765.481934  0.00154180382  0.000256385043
  776.152344  0.00144546514  0.00024519884
  786.971436  0.00134415447  0.000234892723
  797.941406  0.00123452186  0.000225362615
  809.06427  0.00110862532  0.000216259257
  820.342224  0.000955841795  0.000207526595
  831.777283  0.000743272249  0.000199147646
  843.371826  0.000193313841  0.000191107232
  855.127991 -0.00104756514  0.00147225091
  867.047974  0.000617984857  0.00140489277
  879.134155  0.000868633855  0.00134061102
  891.388855  0.000996751129  0.00127927063
  903.814331  0.00107986864  0.00122073607
  916.413025  0.00113422342  0.00116488081
  929.187317  0.00116921158  0.00111208064
  942.139648  0.00118994259  0.00106189644
  955.272583  0.00119833124  0.00101346162
  968.588562  0.00119371375  0.000967185013
  982.09021  0.00117778464  0.000932851573
  995.779968  0.00114994799  0.000919390528
  1009.66058  0.00116010243  0.000926382083
  1023.7348  0.0011883867  0.000908954709
  1038.005  0.00120637415  0.000867784081
  1052.47424  0.00120494387  0.000828000426
  1067.14514  0.0011997727  0.000789836049
  1082.02051  0.00119095831  0.000753417786
  1097.10339  0.00117939478  0.000718677649
  1112.39636  0.00116588466  0.000685533916
  1127.90259  0.00115081423  0.000653919007
  1143.62488  0.00113448838  0.000623766158
  1159.56641  0.00111716043  0.000595005869
  1175.73022  0.00109904236  0.000567569456
  1192.11926  0.00108027621  0.000541397952
  1208.73682  0.00106095464  0.000516432978
  1225.58594  0.00104132399  0.000492617837
  1242.66992  0.00102147809  0.000469853316
  1259.99194  0.00100147165  0.000448078965
  1277.55554  0.000981341698  0.000427244813
  1295.36401  0.000961125945  0.000407318497
  1313.42078  0.000940878876  0.000388320332
  1331.72913  0.000920624065  0.00037020765
  1350.29272  0.000900471874  0.000352937845
  1369.11511  0.00088046788  0.000336474972
  1388.19983  0.000860645552  0.000320781226
  1407.55054  0.00084103673  0.000305819296
  1427.17102  0.000821670343  0.000291554461
  1447.06506  0.0008025727  0.000277953077
  1467.23621  0.000783781114  0.000264956354
  1487.68884  0.000765274395  0.000252521102
  1508.42639  0.000747052778  0.000240520356
  1529.453  0.000729053223  0.000229027544
  1550.77271  0.000711285975  0.000218075002
  1572.38977  0.00069379562  0.000207646852
  1594.30786  0.000676605559  0.000197715926
  1616.53174  0.000659713929  0.000188259015
  1639.06531  0.000643129752  0.000179252907
  1661.91296  0.000626870955  0.000170678657
  1685.0791  0.00061094237  0.000162515818
  1708.56824  0.000595355697  0.000154744834
  1732.38477  0.000580113207  0.000147327533
  1756.53333  0.000565199996  0.000140222925
  1781.01831  0.000550590281  0.00013344569
  1805.84485  0.000536262698  0.000126983723
  1831.01721  0.000522248447  0.000120834477
  1856.54065  0.000508546771  0.000114983173
  1882.41992  0.000495155226  0.000109414883
  1908.65979  0.000482072734  0.000104116516
  1935.2655  0.000469296967  9.90759727E-05
  1962.24194  0.000456820795  9.42793558E-05
  1989.59473  0.00044464157  8.97131104E-05
  2017.32861  0.000432765752  8.5393156E-05
  2045.44897  0.000421190256  8.12528524E-05
  2073.96143  0.0004099012  7.72992935E-05
  2102.87134  0.000398884818  7.3535004E-05
  2132.18433  0.000388134649  6.99517041E-05
  2161.90576  0.000377653574  6.654147E-05
  2192.0415  0.000367431581  6.32930387E-05
  2222.59741  0.000357467943  6.02040309E-05
  2253.57935  0.000347758265  5.72627832E-05
  2284.99292  0.000338295999  5.44626782E-05
  2316.84448  0.000329075876  5.17984809E-05
  2349.13989  0.000320093328  4.92641011E-05
  2381.8855  0.000311343581  4.68521648E-05
  2415.08789  0.000302823144  4.4558059E-05
  2448.75293  0.000294522732  4.23735146E-05
  2482.88721  0.000286440161  4.02951409E-05
  2517.49707  0.000278571795  3.83190454E-05
  2552.58984  0.000270911201  3.6438385E-05
  2588.17163  0.000263452937  3.46485067E-05
  2624.24927  0.000256193016  3.29465183E-05
  2660.82983  0.000249127275  3.13270466E-05
  2697.92041  0.00024224908  2.97867409E-05
  2735.52783  0.000235555795  2.83214722E-05
  2773.65967  0.000229042635  2.6927697E-05
  2812.323  0.000222704562  2.56018684E-05
  2851.52539  0.000216537519  2.43408485E-05
  2891.27393  0.000210537852  2.31415797E-05
  2931.57666  0.000204700613  2.20008042E-05
  2972.44141  0.000199021131  2.09158516E-05
  3013.87549  0.00019349654  1.98841608E-05
  3055.88745  0.000188122358  1.8902927E-05
  3098.48486  0.000182894844  1.79696235E-05
  3141.67603  0.000177810274  1.7082064E-05
  3185.46924  0.000172864762  1.62380893E-05
  3229.8728  0.000168054539  1.54354493E-05
  3274.89575  0.000163375851  1.46724024E-05
  3320.54614  0.000158825977  1.39466929E-05
  3366.83252  0.000154401219  1.32565947E-05
  3413.7644  0.000150098087  1.26003215E-05
  3461.35059  0.000145913291  1.19763681E-05
  3509.59961  0.00014184395  1.13831657E-05
  3558.52148  0.000137887182  1.08190288E-05
  3608.12549  0.000134039306  1.02827953E-05
  3658.4209  0.000130297558  9.77281343E-06
  3709.41724  0.000126659215  9.28791724E-06
  3761.12451  0.000123121456  8.82695076E-06
  3813.55249  0.000119681506  8.38874439E-06
  3866.71143  0.000116336836  7.97212579E-06
  3920.61133  0.00011308492  7.57599946E-06
  3975.26221  0.000109923021  7.19951095E-06
  4030.67554  0.000106848478  6.84141378E-06
  4086.86084  0.000103859042  6.50106404E-06
  4143.82959  0.000100952391  6.17744126E-06
  4201.59229  9.81264238E-05  5.86986152E-06
  4260.16016  9.53789058E-05  5.57750946E-06
  4319.54443  9.27075525E-05  5.29952968E-06
  4379.75635  9.01102467E-05  5.03523188E-06
  4440.80811  8.75848782E-05  4.78411584E-06
  4502.71045  8.5129519E-05  4.54525161E-06
  4565.47559  8.27420808E-05  4.31829994E-06
  4629.11572  8.04207157E-05  4.10254916E-06
  4693.64355  7.81635681E-05  3.89743764E-06
  4759.07031  7.59690083E-05  3.7024945E-06
  4825.40918  7.38353701E-05  3.51721928E-06
  4892.67285  7.17606163E-05  3.3411593E-06
  4960.87402  6.97430442E-05  3.17370768E-06
  5030.02588  6.77810822E-05  3.01452792E-06
  5100.14209  6.58733261E-05  2.86331328E-06
  5171.23486  6.40182843E-05  2.71960471E-06
  5243.31885  6.2214378E-05  2.58298019E-06
  5316.4082  6.046009E-05  2.45311185E-06
  5390.51611  5.87541326E-05  2.32971843E-06
  5465.65723  5.70946468E-05  2.21237656E-06
  5541.84521  5.54806247E-05  2.10099211E-06
  5619.09521  5.39107496E-05  1.99501937E-06
  5697.42285  5.23837371E-05  1.89432251E-06
  5776.8418  5.08982885E-05  1.79868277E-06
  5857.36768  4.94531851E-05  1.7077939E-06
  5939.01611  4.80473318E-05  1.62139406E-06
  6021.80273  4.66791425E-05  1.53924191E-06
  6105.74316  4.53474713E-05  1.46124239E-06
  6190.85449  4.40514559E-05  1.38708083E-06
  6277.15186  4.27898085E-05  1.3166167E-06
  6364.65137  4.15614668E-05  1.24967767E-06
  6453.37158  4.03653685E-05  1.18606658E-06
  6543.32812  3.92003385E-05  1.12561702E-06
  6634.53809  3.80649944E-05  1.06819118E-06
  6727.02051  3.69578484E-05  1.01362127E-06
  6820.7915  3.58781217E-05  9.61768933E-07
  6915.86914  3.48245121E-05  9.1251502E-07
  7012.27295  3.37957717E-05  8.65718391E-07
  7110.02002  3.27904563E-05  8.21255639E-07
  7209.12988  3.18068996E-05  7.79021207E-07
  7309.62109  3.08434865E-05  7.38896802E-07
  7411.51318  2.98953946E-05  7.00785677E-07
  7514.82617  2.89613581E-05  6.64569143E-07
  7619.57861  2.8037226E-05  6.30172053E-07
  7725.79102  2.71171448E-05  5.97504823E-07
  7833.48438  2.61920995E-05  5.66477581E-07
  7942.67969  2.52469817E-05  5.37008361E-07
  8053.396  2.42549322E-05  5.09014797E-07
  8165.65625  2.31093054E-05  4.82427595E-07
  8279.48047  2.10075268E-05  4.57199405E-07
  8394.89258  1.86434008E-05  3.3940396E-06
  8511.91211  2.14598604E-05  3.23519725E-06
  8630.56348  2.14166685E-05  3.08356266E-06
  8750.86914  2.11697698E-05  2.93860103E-06
  8872.85156  2.08371493E-05  2.80004838E-06
  8996.53418  2.04567059E-05  2.66763459E-06
  9121.94141  2.00498725E-05  2.54107272E-06
  9249.0957  1.96298115E-05  2.42013334E-06
  9378.02344  1.92022635E-05  2.30465275E-06
  9508.74805  1.87713431E-05  2.19442131E-06
  9641.29492  1.83399698E-05  2.0891996E-06
  9775.68848  1.79102535E-05  1.98876319E-06
  9911.95703  1.74836168E-05  1.89300727E-06
  10050.125  1.70608037E-05  1.8015362E-06
  10190.2178  1.6643653E-05  1.71429701E-06
  10332.2637  1.62326978E-05  1.63109689E-06
  10476.29  1.58284074E-05  1.5517669E-06
  10622.3232  1.54311583E-05  1.47614173E-06
  10770.3926  1.5041227E-05  1.40405143E-06
  10920.5264  1.46587872E-05  1.33535286E-06
  11072.7529  1.42837162E-05  1.26987084E-06
  11227.1006  1.39163885E-05  1.20747166E-06
  11383.6006  1.35568898E-05  1.14803265E-06
  11542.2822  1.32052446E-05  1.0914199E-06
  11703.1748  1.28614265E-05  1.03750858E-06
  11866.3105  1.25253719E-05  9.86175678E-07
  12031.7207  1.21970443E-05  9.37298125E-07
  12199.4365  1.18762446E-05  8.90770991E-07
  12369.4902  1.15629773E-05  8.46466776E-07
  12541.9141  1.12571979E-05  8.04307831E-07
  12716.7412  1.09588027E-05  7.64189281E-07
  12894.0059  1.06676753E-05  7.2602063E-07
  13073.7412  1.03836883E-05  6.89708202E-07
  13255.9824  1.01067008E-05  6.55155588E-07
  13440.7637  9.83661448E-06  6.22291907E-07
  13628.1211  9.5732421E-06  5.91028652E-07
  13818.0889  9.31650993E-06  5.61301533E-07
  14010.7061  9.06628156E-06  5.33031312E-07
  14206.0068  8.82245149E-06  5.06153469E-07
  14404.0312  8.58487238E-06  4.80601898E-07
  14604.8164  8.3533796E-06  4.56307959E-07
  14808.3994  8.12787766E-06  4.33221544E-07
  15014.8203  7.90817467E-06  4.11269951E-07
  15224.1182  7.6942124E-06  3.90408729E-07
  15436.335  7.48583125E-06  3.70582853E-07
  15651.5098  7.28289933E-06  3.5174503E-07
  15869.6816  7.08530433E-06  3.33847026E-07
  16090.8965  6.89292301E-06  3.16842772E-07
  16315.1953  6.70561076E-06  3.00690459E-07
  16542.6191  6.52323934E-06  2.85344441E-07
  16773.2148  6.34570551E-06  2.70766861E-07
  17007.0254  6.17289334E-06  2.56921481E-07
  17244.0938  6.00469093E-06  2.43772632E-07
  17484.4668  5.84098188E-06  2.31287387E-07
  17728.1914  5.68165251E-06  2.19431769E-07
  17975.3125  5.52659776E-06  2.08172423E-07
  18225.8789  5.37568485E-06  1.97484098E-07
  18479.9375  5.22883329E-06  1.87335914E-07
  18737.5371  5.08593075E-06  1.77700386E-07
  18998.7285  4.94687856E-06  1.68554251E-07
  19263.5605  4.81158531E-06  1.59872712E-07
  19532.084  4.67994914E-06  1.51632847E-07
  19804.3516  4.55186E-06  1.43813224E-07
  20080.4141  4.42725377E-06  1.36390483E-07
  20360.3223  4.30600858E-06  1.29345722E-07
  20644.1348  4.18806076E-06  1.2265977E-07
  20931.9023  4.07331481E-06  1.16315881E-07
  21223.6816  3.96168844E-06  1.1029703E-07
  21519.5293  3.85309659E-06  1.04586334E-07
  21819.5  3.74745696E-06  9.91683962E-08
  22123.6523  3.64470407E-06  9.4028195E-08
  22432.0449  3.5447365E-06  8.91512428E-08
  22744.7324  3.4475122E-06  8.4525027E-08
  23061.7832  3.35293134E-06  8.01368714E-08
  23383.252  3.26093141E-06  7.59746399E-08
  23709.2012  3.17144804E-06  7.20269071E-08
  24039.6953  3.08441167E-06  6.82827235E-08
  24374.7949  2.99975636E-06  6.47315801E-08
  24714.5664  2.91741594E-06  6.13638989E-08
  25059.0742  2.83732834E-06  5.81702295E-08
  25408.3848  2.75943762E-06  5.5141463E-08
  25762.5645  2.6836808E-06  5.22694741E-08
  26121.6797  2.60999718E-06  4.95462693E-08
  26485.8008  2.53833196E-06  4.69641002E-08
  26855.  2.46863328E-06  4.4516149E-08
  27229.3438  2.40084228E-06  4.21951221E-08
  27608.9062  2.33491278E-06  3.9994422E-08
  27993.7598  2.27079909E-06  3.79081158E-08
  28383.9766  2.20844322E-06  3.59303449E-08
  28779.6348  2.14780607E-06  3.40554713E-08
  29180.8066  2.08885444E-06  3.22781943E-08
  29587.5723  2.03148738E-06  3.05934442E-08
  30000.0059  1.97541658E-06  2.89965385E-08];
end    

if(Material == 'Ge')
RefractiveData =[30.  0.00746412715  0.0448890142
  30.4181843  0.00595638156  0.054626964
  30.8421955  0.00843961537  0.064649187
  31.2721214  0.0145479031  0.0694300383
  31.7080383  0.0201119911  0.0717813969
  32.150032  0.0247143302  0.0729829594
  32.5981827  0.0300033595  0.0719562247
  33.0525818  0.0337366909  0.0691851228
  33.5133171  0.035629265  0.0658273473
  33.9804764  0.0364880487  0.0626908764
  34.4541473  0.0367206857  0.0598161891
  34.9344177  0.0364921354  0.057073541
  35.4213829  0.0358153023  0.054476168
  35.9151382  0.0348861255  0.0521287061
  36.4157791  0.0337591134  0.0499143675
  36.9233932  0.0323952064  0.0477941073
  37.4380875  0.0306861848  0.0458641313
  37.9599533  0.0286653452  0.044312384
  38.4890938  0.026903905  0.043294739
  39.0256119  0.025325546  0.0423005521
  39.5696068  0.023750931  0.0413291343
  40.1211853  0.0221010745  0.0404147245
  40.6804543  0.0204559471  0.039669428
  41.2475166  0.0188729037  0.0390567072
  41.8224831  0.0173175409  0.0384534411
  42.405468  0.0156761054  0.0378773585
  42.9965744  0.0137803946  0.0376656689
  43.5959282  0.0122494642  0.037720114
  44.2036324  0.0109225987  0.0378079824
  44.8198051  0.00970301498  0.0378961228
  45.4445686  0.00851756148  0.0379844531
  46.0780411  0.00734507106  0.0381585509
  46.7203445  0.00625048717  0.0385971367
  47.3715973  0.00544564659  0.0391160659
  48.0319328  0.00492605986  0.0396421254
  48.7014732  0.00472767279  0.0399275646
  49.3803444  0.00449123606  0.0399906822
  50.0686798  0.00414999807  0.0399591886
  50.7666092  0.0037753589  0.0399277322
  51.4742699  0.00341013959  0.0398952588
  52.1917915  0.00306519447  0.0398563705
  52.9193192  0.00272500934  0.0398046859
  53.6569862  0.00239406223  0.0397527218
  54.4049339  0.00207070657  0.0397008806
  55.163311  0.00174392061  0.0396490917
  55.9322586  0.00142306031  0.0396291576
  56.7119217  0.0011363097  0.0396700986
  57.5024567  0.000903255364  0.0397112407
  58.3040123  0.00071347761  0.0397525765
  59.1167336  0.0005585865  0.0397939496
  59.9407921  0.000435519178  0.039835263
  60.7763329  0.000341158389  0.0398801938
  61.6235237  0.000280344801  0.0399308801
  62.4825172  0.000259507768  0.0399860032
  63.3534927  0.00027766393  0.040041063
  64.2366028  0.000340630795  0.0400963016
  65.1320343  0.000452831388  0.0401516072
  66.0399323  0.000617577985  0.0402069315
  66.960495  0.00084663037  0.0402623937
  67.8938904  0.00119270338  0.0403360911
  68.8402939  0.00167880207  0.040310964
  69.7998886  0.00222697319  0.0399566106
  70.7728577  0.00259982911  0.0395302884
  71.7593994  0.00287018367  0.039108485
  72.7596817  0.003100381  0.0386911817
  73.7739182  0.00330210384  0.0382783636
  74.8022842  0.00348244561  0.0378699005
  75.844986  0.00364650972  0.0374657586
  76.9022217  0.00379802682  0.0370659642
  77.9741974  0.003939969  0.0366705023
  79.0611115  0.0040755393  0.0362792127
  80.1631851  0.00420675706  0.0358920768
  81.2806168  0.00433590636  0.0355091244
  82.4136276  0.00446793763  0.0351302251
  83.5624237  0.00460189721  0.0347447656
  84.7272415  0.00473068608  0.0343448557
  85.9082947  0.00484651234  0.0339470915
  87.1058121  0.00495414343  0.0335539281
  88.320015  0.00505763246  0.0331653319
  89.5511475  0.00515786093  0.0327812582
  90.7994385  0.00525579276  0.0324016176
  92.0651398  0.00535228057  0.0320263728
  93.3484802  0.00544817373  0.0316554718
  94.649704  0.00554438913  0.0312888548
  95.9690704  0.00564278057  0.0309264939
  97.3068314  0.00574762002  0.0305683371
  98.6632385  0.00586958183  0.0302051399
  100.038544  0.00598489307  0.0298264232
  101.433029  0.00608654739  0.0294419434
  102.846954  0.00617840607  0.0290623643
  104.280579  0.0062653455  0.0286875833
  105.734192  0.00634898199  0.0283178613
  107.208076  0.00643146923  0.0279526729
  108.702492  0.00651242537  0.0275923461
  110.217751  0.00659254007  0.0272368155
  111.754128  0.00667225523  0.026885787
  113.311913  0.00675211987  0.0265391376
  114.891418  0.0068327426  0.0261969175
  116.492943  0.00691458024  0.0258592013
  118.116798  0.00700079743  0.0255259443
  119.763275  0.00709098019  0.0251968745
  121.432716  0.00718665402  0.0248719305
  123.125427  0.00729130954  0.0245512519
  124.841721  0.00741547998  0.0242305212
  126.581955  0.00755574834  0.0238914378
  128.346436  0.00767891901  0.0235053506
  130.135513  0.00777894445  0.0231255181
  131.949539  0.0078658089  0.0227516908
  133.788834  0.00794554129  0.0223839264
  135.653778  0.0080202762  0.0220221579
  137.544724  0.00809166022  0.0216663275
  139.462021  0.00816112943  0.0213162638
  141.406052  0.00822997  0.0209717527
  143.377167  0.00830024667  0.0206326414
  145.375778  0.00837578811  0.020299295
  147.402222  0.00845837127  0.0199712589
  149.45694  0.00855618902  0.0196485091
  151.540268  0.00868764333  0.0193074495
  153.652664  0.00882508978  0.0189238042
  155.794495  0.00891377032  0.0184993222
  157.966202  0.00897123758  0.0180844013
  160.168167  0.00900930259  0.0176789071
  162.400818  0.0090345284  0.0172824021
  164.664597  0.00904949103  0.0168947466
  166.95993  0.00905623008  0.0165158026
  169.287262  0.00905620214  0.0161453653
  171.647034  0.00905052945  0.0157832298
  174.039703  0.00904028025  0.0154292565
  176.465729  0.00902698841  0.0150831668
  178.925552  0.00901139621  0.0147448713
  181.419678  0.00899437536  0.0144141559
  183.948563  0.00897705182  0.0140908612
  186.512726  0.00896062329  0.0137748206
  189.112595  0.00894683972  0.0134658935
  191.748734  0.00893872697  0.0131638972
  194.4216  0.00894418545  0.012868613
  197.131729  0.00899027195  0.0125473123
  199.879639  0.00899908133  0.0121846432
  202.665863  0.00897714868  0.01181952
  205.490906  0.00893516466  0.0114653613
  208.355347  0.00888009556  0.011121816
  211.259705  0.00881535653  0.0107885348
  214.204544  0.00874274224  0.0104652764
  217.190445  0.00866363198  0.0101516619
  220.217957  0.00857971888  0.00984750688
  223.287674  0.00849183369  0.00955242477
  226.400192  0.00840073917  0.00926619861
  229.556091  0.00830707513  0.00898855366
  232.755981  0.00821136311  0.00871918164
  236.000458  0.00811409764  0.00845790096
  239.290176  0.00801582355  0.00820446573
  242.625763  0.00791698415  0.00795865059
  246.007828  0.00781806186  0.00772018125
  249.437057  0.00771956146  0.00748883421
  252.914062  0.007621984  0.00726442179
  256.439545  0.00752591016  0.00704674888
  260.01416  0.00743211852  0.00683561014
  263.638641  0.00734240143  0.00663077924
  267.313599  0.0072655254  0.00643210392
  271.039825  0.00719788205  0.00621870672
  274.817963  0.00711895898  0.00599379512
  278.648773  0.00702540111  0.00576912891
  282.53299  0.00692288391  0.00555287907
  286.471375  0.00681513967  0.00534476014
  290.4646  0.00670376746  0.00514443638
  294.513519  0.00658970699  0.00495160371
  298.618896  0.00647414476  0.00476600928
  302.781494  0.00635767728  0.00458735414
  307.002106  0.0062407339  0.00441541197
  311.281525  0.00612365501  0.00424993271
  315.620605  0.00600674003  0.00409063045
  320.020203  0.00589024182  0.00393730029
  324.48111  0.00577417389  0.00378972013
  329.004181  0.0056589935  0.00364767248
  333.590363  0.00554483524  0.00351095549
  338.240417  0.00543187  0.00337935216
  342.955322  0.00532022677  0.00325267669
  347.735901  0.00521002011  0.00313076051
  352.58316  0.00510137947  0.00301341852
  357.497986  0.00499444362  0.00290046376
  362.481323  0.0048895739  0.00279174768
  367.534119  0.00478790142  0.00268591195
  372.657349  0.00468727294  0.00258214376
  377.85199  0.00458674319  0.00248131179
  383.119019  0.00448671263  0.00238441955
  388.459473  0.00438792538  0.00229130057
  393.87439  0.00429049833  0.00220182817
  399.364807  0.00419456325  0.00211584358
  404.931732  0.00410031015  0.00203321851
  410.576233  0.00400784425  0.00195382163
  416.299469  0.00391726941  0.0018775257
  422.102448  0.00382870785  0.00180420931
  427.986359  0.00374258007  0.00173375336
  433.95224  0.00366033986  0.0016660518
  440.001282  0.00358028035  0.00159605255
  446.134674  0.0034988774  0.00152691267
  452.353577  0.00341714267  0.00146036164
  458.659119  0.00333580817  0.00139671215
  465.052582  0.00325530348  0.00133583613
  471.535156  0.00317585422  0.00127761182
  478.108093  0.0030975854  0.00122192758
  484.772644  0.00302049937  0.00116866722
  491.530151  0.00294475211  0.00111772993
  498.381775  0.00287041161  0.00106901245
  505.328979  0.00279749907  0.00102241791
  512.372986  0.00272603147  0.000977855874
  519.515198  0.00265602209  0.000935235759
  526.756958  0.00258748163  0.000894472178
  534.09967  0.00252039777  0.000855486898
  541.544739  0.00245478493  0.000818198954
  549.093506  0.002390682  0.000782537449
  556.74762  0.00232811458  0.000748429622
  564.508362  0.00226718374  0.000715808361
  572.377319  0.00220795721  0.000684329483
  580.355957  0.00215027691  0.000653471099
  588.445801  0.00209334982  0.000623407192
  596.648438  0.00203711679  0.000594724843
  604.965332  0.00198199577  0.000567362586
  613.398315  0.00192801643  0.000541259185
  621.948669  0.00187519717  0.000516357715
  630.618347  0.00182354171  0.000492600957
  639.408813  0.00177304912  0.000469937338
  648.321838  0.00172371813  0.000448316394
  657.35907  0.00167550077  0.0004276908
  666.522278  0.00162841484  0.000408013177
  675.813293  0.00158245489  0.000389241293
  685.233704  0.00153760321  0.000371333357
  694.785522  0.00149384548  0.000354248885
  704.470398  0.00145116902  0.000337950652
  714.290344  0.00140955718  0.000322402542
  724.247192  0.0013691542  0.000307569455
  734.342834  0.00132964901  0.000293046236
  744.579163  0.0012909373  0.000279149244
  754.958191  0.0012530582  0.000265904993
  765.481934  0.00121603825  0.000253288803
  776.152344  0.00117987581  0.000241271206
  786.971436  0.00114455994  0.000229824029
  797.941406  0.00111005583  0.000218919842
  809.06427  0.00107634044  0.000208532772
  820.342224  0.00104341959  0.000198638736
  831.777283  0.00101127324  0.000189214261
  843.371826  0.000979881734  0.00018023669
  855.127991  0.000949228939  0.00017168514
  867.047974  0.000919317419  0.00016352316
  879.134155  0.000890201249  0.000155660833
  891.388855  0.000861532113  0.00014795168
  903.814331  0.000833319966  0.000140621909
  916.413025  0.000805601536  0.000133655121
  929.187317  0.000778343994  0.000127033418
  942.139648  0.000751469401  0.00012078556
  955.272583  0.000724979036  0.000114998758
  968.588562  0.000699096825  0.000109783236
  982.09021  0.000673706701  0.000104805258
  995.779968  0.000648699584  0.000100059042
  1009.66058  0.00062400609  9.55334035E-05
  1023.7348  0.000599571387  9.1245478E-05
  1038.005  0.000575321785  8.71688317E-05
  1052.47424  0.000551148318  8.32639198E-05
  1067.14514  0.000526912801  7.95241212E-05
  1082.02051  0.00050232478  7.59519826E-05
  1097.10339  0.00047706769  7.2540679E-05
  1112.39636  0.000450899504  6.9282898E-05
  1127.90259  0.000423290214  6.61702652E-05
  1143.62488  0.000393389171  6.31970615E-05
  1159.56641  0.000359699974  6.03577064E-05
  1175.73022  0.000319304585  5.76456259E-05
  1192.11926  0.000265157578  5.50553959E-05
  1208.73682  0.000135648108  5.25816213E-05
  1225.58594  2.11181632E-05  0.000338461803
  1242.66992  0.000250797311  0.000326134148
  1259.99194  0.000296794111  0.000314268022
  1277.55554  0.000321443193  0.000302855711
  1295.36401  0.00033668644  0.000291877077
  1313.42078  0.000346486922  0.000281296525
  1331.72913  0.000352409552  0.000271101075
  1350.29272  0.000356007717  0.000261274719
  1369.11511  0.0003578756  0.000251802587
  1388.19983  0.000358418591  0.000242673748
  1407.55054  0.000357984507  0.000233875791
  1427.17102  0.00035672012  0.000225402633
  1447.06506  0.00035496059  0.000217218039
  1467.23621  0.00035291852  0.000209133592
  1487.68884  0.000350736169  0.000201068891
  1508.42639  0.000347916299  0.000192352847
  1529.453  0.000344317319  0.000183605545
  1550.77271  0.000340021623  0.000175188732
  1572.38977  0.000335215707  0.000167157777
  1594.30786  0.000330074807  0.000159495772
  1616.53174  0.000324663037  0.000152185545
  1639.06531  0.000319039129  0.000145207989
  1661.91296  0.000313283323  0.000138551768
  1685.0791  0.000307432696  0.000132201254
  1708.56824  0.000301545748  0.000126141997
  1732.38477  0.000295646227  0.000120327211
  1756.53333  0.000289710646  0.000114703907
  1781.01831  0.000283726258  0.000109314824
  1805.84485  0.000277698418  0.000104155064
  1831.01721  0.000271671248  9.92377609E-05
  1856.54065  0.000265668234  9.4552619E-05
  1882.41992  0.000259704771  9.00887026E-05
  1908.65979  0.000253792532  8.58361745E-05
  1935.2655  0.000247941614  8.1785467E-05
  1962.24194  0.000242160502  7.79253314E-05
  1989.59473  0.000236436201  7.42458433E-05
  2017.32861  0.000230833612  7.07713916E-05
  2045.44897  0.000225327065  6.74136245E-05
  2073.96143  0.000219894617  6.41922961E-05
  2102.87134  0.000214538013  6.11194482E-05
  2132.18433  0.000209268561  5.81894419E-05
  2161.90576  0.000204089127  5.53963582E-05
  2192.0415  0.00019900086  5.27339544E-05
  2222.59741  0.00019400398  5.0192979E-05
  2253.57935  0.000189102691  4.77723224E-05
  2284.99292  0.000184298362  4.54657129E-05
  2316.84448  0.000179591632  4.32674569E-05
  2349.13989  0.000174982255  4.1172716E-05
  2381.8855  0.000170469692  3.91769026E-05
  2415.08789  0.000166054277  3.72758477E-05
  2448.75293  0.000161732052  3.54633594E-05
  2482.88721  0.000157505216  3.37375459E-05
  2517.49707  0.000153373883  3.20944346E-05
  2552.58984  0.000149336993  3.05297399E-05
  2588.17163  0.000145393569  2.90398057E-05
  2624.24927  0.000141542681  2.76213268E-05
  2660.82983  0.000137782772  2.62707072E-05
  2697.92041  0.000134110218  2.49836885E-05
  2735.52783  0.000130525877  2.37594286E-05
  2773.65967  0.000127028819  2.2593722E-05
  2812.323  0.000123617167  2.14844422E-05
  2851.52539  0.000120289667  2.04291955E-05
  2891.27393  0.000117045485  1.9425006E-05
  2931.57666  0.000113882816  1.84690507E-05
  2972.44141  0.000110798603  1.75589521E-05
  3013.87549  0.000107791944  1.66930949E-05
  3055.88745  0.000104861843  1.58695548E-05
  3098.48486  0.000102006859  1.50860478E-05
  3141.67603  9.92254863E-05  1.43406623E-05
  3185.46924  9.65160361E-05  1.3631643E-05
  3229.8728  9.38768062E-05  1.29571872E-05
  3274.89575  9.13062249E-05  1.23157088E-05
  3320.54614  8.88026698E-05  1.1705537E-05
  3366.83252  8.63650203E-05  1.11252875E-05
  3413.7644  8.3991632E-05  1.05734434E-05
  3461.35059  8.16809697E-05  1.00486313E-05
  3509.59961  7.9431702E-05  9.54961979E-06
  3558.52148  7.72424319E-05  9.07516733E-06
  3608.12549  7.51116168E-05  8.62401976E-06
  3658.4209  7.30374304E-05  8.19497291E-06
  3709.41724  7.10189124E-05  7.7871091E-06
  3761.12451  6.90547386E-05  7.39937059E-06
  3813.55249  6.71435992E-05  7.0307683E-06
  3866.71143  6.52841627E-05  6.68034863E-06
  3920.61133  6.3475054E-05  6.34718663E-06
  3975.26221  6.17149853E-05  6.03050103E-06
  4030.67554  6.00025814E-05  5.72955787E-06
  4086.86084  5.83368783E-05  5.44342129E-06
  4143.82959  5.67166244E-05  5.17146509E-06
  4201.59229  5.5140601E-05  4.91299897E-06
  4260.16016  5.36076914E-05  4.66732081E-06
  4319.54443  5.2116764E-05  4.43381305E-06
  4379.75635  5.06666183E-05  4.21198183E-06
  4440.80811  4.92563122E-05  4.0011405E-06
  4502.71045  4.7884776E-05  3.80075289E-06
  4565.47559  4.65508965E-05  3.61026218E-06
  4629.11572  4.52537206E-05  3.4293023E-06
  4693.64355  4.39923133E-05  3.25735323E-06
  4759.07031  4.2765736E-05  3.09396296E-06
  4825.40918  4.1572981E-05  2.93877588E-06
  4892.67285  4.04131861E-05  2.79127858E-06
  4960.87402  3.92854272E-05  2.65108974E-06
  5030.02588  3.81887803E-05  2.51789561E-06
  5100.14209  3.71225105E-05  2.39138171E-06
  5171.23486  3.60857994E-05  2.27118699E-06
  5243.31885  3.50777846E-05  2.15696423E-06
  5316.4082  3.40976512E-05  2.04842809E-06
  5390.51611  3.31445954E-05  1.94539348E-06
  5465.65723  3.22180786E-05  1.84749103E-06
  5541.84521  3.13172313E-05  1.75442494E-06
  5619.09521  3.04413479E-05  1.66603274E-06
  5697.42285  2.95897407E-05  1.58209184E-06
  5776.8418  2.87617422E-05  1.50234382E-06
  5857.36768  2.79567139E-05  1.42657245E-06
  5939.01611  2.71740173E-05  1.35463597E-06
  6021.80273  2.64130867E-05  1.28626607E-06
  6105.74316  2.56731964E-05  1.2213435E-06
  6190.85449  2.49537807E-05  1.15965622E-06
  6277.15186  2.42542919E-05  1.10107521E-06
  6364.65137  2.35742136E-05  1.04545006E-06
  6453.37158  2.29130055E-05  9.92596938E-07
  6543.32812  2.22701146E-05  9.42348777E-07
  6634.53809  2.16449334E-05  8.94670734E-07
  6727.02051  2.1037009E-05  8.49415926E-07
  6820.7915  2.04459539E-05  8.06417745E-07
  6915.86914  1.98712078E-05  7.65556877E-07
  7012.27295  1.93122851E-05  7.26747942E-07
  7110.02002  1.8768782E-05  6.89901185E-07
  7209.12988  1.82402837E-05  6.54906785E-07
  7309.62109  1.77262791E-05  6.21667994E-07
  7411.51318  1.72263171E-05  5.90107334E-07
  7514.82617  1.67400485E-05  5.60131127E-07
  7619.57861  1.62671131E-05  5.3166724E-07
  7725.79102  1.58070889E-05  5.04637171E-07
  7833.48438  1.5359572E-05  4.7896566E-07
  7942.67969  1.49242069E-05  4.54586797E-07
  8053.396  1.45006552E-05  4.31436405E-07
  8165.65625  1.40884267E-05  4.09453975E-07
  8279.48047  1.36872568E-05  3.88577803E-07
  8394.89258  1.3296758E-05  3.68756815E-07
  8511.91211  1.29166301E-05  3.49932634E-07
  8630.56348  1.25465194E-05  3.3205751E-07
  8750.86914  1.21860639E-05  3.15087448E-07
  8872.85156  1.18349417E-05  2.98973703E-07
  8996.53418  1.14927252E-05  2.83671142E-07
  9121.94141  1.1158907E-05  2.6914276E-07
  9249.0957  1.08332715E-05  2.55347516E-07
  9378.02344  1.05154249E-05  2.42250564E-07
  9508.74805  1.02048998E-05  2.29815441E-07
  9641.29492  9.90120407E-06  2.18009703E-07
  9775.68848  9.60382931E-06  2.06803691E-07
  9911.95703  9.31201703E-06  1.96161594E-07
  10050.125  9.02419106E-06  1.86056837E-07
  10190.2178  8.73956742E-06  1.76465406E-07
  10332.2637  8.45627073E-06  1.67359332E-07
  10476.29  8.17132059E-06  1.58714926E-07
  10622.3232  7.87931094E-06  1.50509536E-07
  10770.3926  7.56865575E-06  1.42720125E-07
  10920.5264  7.2078974E-06  1.35326204E-07
  11072.7529  6.33033005E-06  1.28306837E-07
  11227.1006  6.32421416E-06  9.25710253E-07
  11383.6006  6.78617425E-06  8.81769722E-07
  11542.2822  6.72949454E-06  8.39845598E-07
  11703.1748  6.63036462E-06  7.99814984E-07
  11866.3105  6.51212895E-06  7.6159688E-07
  12031.7207  6.38375832E-06  7.2511051E-07
  12199.4365  6.24914401E-06  6.90289767E-07
  12369.4902  6.11159066E-06  6.57050691E-07
  12541.9141  5.97297867E-06  6.25344342E-07
  12716.7412  5.83428437E-06  5.95102733E-07
  12894.0059  5.69620806E-06  5.66264873E-07
  13073.7412  5.55927727E-06  5.38768461E-07
  13255.9824  5.42388534E-06  5.125504E-07
  13440.7637  5.29022418E-06  4.87559817E-07
  13628.1211  5.15847614E-06  4.63734011E-07
  13818.0889  5.02896046E-06  4.41035411E-07
  14010.7061  4.90179582E-06  4.19407144E-07
  14206.0068  4.77705635E-06  3.98803479E-07
  14404.0312  4.65479161E-06  3.79179454E-07
  14604.8164  4.53504163E-06  3.60488741E-07
  14808.3994  4.41781322E-06  3.42694875E-07
  15014.8203  4.3030609E-06  3.25744139E-07
  15224.1182  4.19085382E-06  3.09606889E-07
  15436.335  4.08120104E-06  2.94246547E-07
  15651.5098  3.97407393E-06  2.79627017E-07
  15869.6816  3.86945021E-06  2.65713709E-07
  16090.8965  3.76730463E-06  2.5247536E-07
  16315.1953  3.6675965E-06  2.39881302E-07
  16542.6191  3.57027807E-06  2.27895683E-07
  16773.2148  3.47532432E-06  2.1649366E-07
  17007.0254  3.38270888E-06  2.05648419E-07
  17244.0938  3.29239242E-06  1.95333683E-07
  17484.4668  3.20433401E-06  1.85525806E-07
  17728.1914  3.11849067E-06  1.76200132E-07
  17975.3125  3.03481829E-06  1.67331649E-07
  18225.8789  2.95326777E-06  1.58901415E-07
  18479.9375  2.87378612E-06  1.50885413E-07
  18737.5371  2.79634878E-06  1.43265609E-07
  18998.7285  2.72090961E-06  1.3602353E-07
  19263.5605  2.64742516E-06  1.29140446E-07
  19532.084  2.57585225E-06  1.22599545E-07
  19804.3516  2.50614585E-06  1.16384868E-07
  20080.4141  2.43825843E-06  1.1047883E-07
  20360.3223  2.3721484E-06  1.04866544E-07
  20644.1348  2.30777891E-06  9.95344891E-08
  20931.9023  2.24510518E-06  9.44692431E-08
  21223.6816  2.18409059E-06  8.96579095E-08
  21519.5293  2.12469558E-06  8.50879758E-08
  21819.5  2.06687992E-06  8.07478031E-08
  22123.6523  2.01060561E-06  7.66254402E-08
  22432.0449  1.95582265E-06  7.27102645E-08
  22744.7324  1.9025066E-06  6.89923993E-08
  23061.7832  1.85061845E-06  6.54625438E-08
  23383.252  1.80012159E-06  6.21108356E-08
  23709.2012  1.75098069E-06  5.89285456E-08
  24039.6953  1.70316309E-06  5.59075701E-08
  24374.7949  1.65663607E-06  5.303961E-08
  24714.5664  1.61135586E-06  5.0316924E-08
  25059.0742  1.56730198E-06  4.77326481E-08
  25408.3848  1.5244359E-06  4.52794851E-08
  25762.5645  1.48273045E-06  4.29511502E-08
  26121.6797  1.44215642E-06  4.07414191E-08
  26485.8008  1.4026831E-06  3.8644238E-08
  26855.  1.36428082E-06  3.66542992E-08
  27229.3438  1.3269206E-06  3.47658329E-08
  27608.9062  1.29057366E-06  3.29737908E-08
  27993.7598  1.2552166E-06  3.1273359E-08
  28383.9766  1.2208227E-06  2.96600327E-08
  28779.6348  1.18736727E-06  2.8129362E-08
  29180.8066  1.15484568E-06  2.66771636E-08
  29587.5723  1.1232006E-06  2.52994585E-08
  30000.0059  1.09215068E-06  2.39925413E-08];
end   

if(Material == 'SO')
    RefractiveData =[30.  0.111903027  0.163769349
  30.3512878  0.111048318  0.160546899
  30.7066898  0.110189982  0.157387778
  31.0662537  0.10932631  0.15429081
  31.4300251  0.108459368  0.151259422
  31.7980595  0.107592359  0.148294806
  32.1704025  0.106740892  0.145406544
  32.5471039  0.105910152  0.142574608
  32.9282188  0.105092838  0.139797851
  33.3137932  0.10428863  0.13707529
  33.7038841  0.103524774  0.134405896
  34.0985451  0.102785274  0.131788537
  34.4978218  0.102073923  0.129222274
  34.9017792  0.101408936  0.126705974
  35.310463  0.100845933  0.124238767
  35.7239342  0.100396171  0.121819645
  36.1422462  0.100069366  0.119373515
  36.5654602  0.0999458805  0.116395682
  36.9936295  0.0994602665  0.113365673
  37.4268074  0.0987783745  0.110370025
  37.8650589  0.097979866  0.107453987
  38.3084412  0.0970807076  0.104615688
  38.757019  0.0961346924  0.101852812
  39.2108498  0.0951495692  0.0991616622
  39.6699944  0.0941289067  0.0965361297
  40.1345139  0.0930716395  0.0939701274
  40.6044693  0.0919889361  0.091470696
  41.0799332  0.0908840224  0.0890379772
  41.5609627  0.0897582769  0.0866698623
  42.0476227  0.0886216238  0.0843650848
  42.5399857  0.0874784663  0.0821217597
  43.0381088  0.0863302797  0.0799381658
  43.5420685  0.0851769  0.077812776
  44.0519333  0.0840254426  0.0757440701
  44.5677605  0.0828775838  0.0737305135
  45.0896339  0.0817347914  0.0717705488
  45.6176109  0.0806017146  0.0698628649
  46.1517754  0.0794808716  0.0680046827
  46.6921959  0.0783738866  0.0661942586
  47.2389412  0.0772903189  0.0644308254
  47.7920914  0.0762427822  0.0627144575
  48.3517151  0.0752454251  0.0610174201
  48.9178963  0.0743215829  0.0593070202
  49.4907036  0.0733221471  0.0574728474
  50.0702209  0.0722635314  0.0556820706
  50.6565208  0.0711571127  0.0539473519
  51.249691  0.070018068  0.0522668809
  51.8498039  0.068859987  0.0506390184
  52.4569435  0.067695193  0.0490634628
  53.0711937  0.0665269494  0.0475393869
  53.6926346  0.0653526336  0.0460703969
  54.3213577  0.0641839057  0.0446473099
  54.9574356  0.0630219653  0.0432686806
  55.6009674  0.0618652105  0.0419330448
  56.2520294  0.060711734  0.0406390503
  56.910717  0.0595674068  0.0393854491
  57.5771217  0.0584324338  0.0381710008
  58.2513237  0.057302054  0.0369944237
  58.9334259  0.0561750308  0.0358544663
  59.6235123  0.0550596081  0.0347579457
  60.3216782  0.0539586022  0.0337080806
  61.0280228  0.0528756827  0.0326934904
  61.7426338  0.0518103875  0.031710621
  62.4656143  0.0507624261  0.0307584982
  63.1970634  0.0497306213  0.0298362151
  63.9370766  0.0487153195  0.0289427601
  64.6857529  0.0477214456  0.0280764438
  65.4431992  0.0467476472  0.0272339601
  66.2095032  0.0457824431  0.0263994932
  66.9847946  0.044826407  0.0255909301
  67.7691574  0.0438832864  0.024807496
  68.5627136  0.0429542251  0.0240483843
  69.3655548  0.0420406163  0.0233128201
  70.1777954  0.0411456712  0.0225907527
  70.9995422  0.0402639322  0.0218807757
  71.830925  0.0393829383  0.0211784691
  72.6720352  0.0385032669  0.0204988178
  73.522995  0.0376350544  0.0198410936
  74.3839188  0.0367801078  0.0192029681
  75.254921  0.0359370597  0.0185700916
  76.1361313  0.0350889005  0.0179493241
  77.0276566  0.0342391469  0.0173467249
  77.9296188  0.0333866291  0.0167654101
  78.8421402  0.0325293466  0.0162051767
  79.7653503  0.0316789486  0.015683163
  80.6993713  0.0308395699  0.0151912626
  81.6443253  0.0300177429  0.0147147644
  82.6003494  0.0292037521  0.0142532215
  83.5675659  0.0283950679  0.0138065917
  84.5461121  0.0275903735  0.0133755384
  85.5361099  0.0267884843  0.012972842
  86.5377045  0.0259986483  0.0125825796
  87.5510254  0.0252174977  0.0122043695
  88.57621  0.0244390033  0.0118378438
  89.6134033  0.02365035  0.0114826337
  90.6627426  0.0228572879  0.0111394227
  91.7243652  0.0220581852  0.0108083105
  92.7984238  0.0212377664  0.0104905656
  93.8850555  0.0203819759  0.010182688
  94.9844131  0.0194861796  0.00988438353
  96.0966415  0.0185393542  0.00959544349
  97.2218857  0.0173962992  0.00931752659
  98.3603134  0.0158030819  0.00904644933
  99.5120773  0.0134432483  0.00877137855
  100.677322  0.0116955144  0.0142211011
  101.856216  0.0163929947  0.0136051169
  103.048912  0.0158583336  0.012351864
  104.255569  0.0151425535  0.011455806
  105.476364  0.0139202224  0.0114788897
  106.711449  0.0136249866  0.0121985991
  107.960991  0.0135323396  0.0123617034
  109.225174  0.0134956641  0.0122906873
  110.504158  0.0131172715  0.0122939683
  111.798119  0.0129406005  0.012425337
  113.107231  0.0127506349  0.012415641
  114.431671  0.0124609685  0.0124409487
  115.771614  0.0122316554  0.0126899192
  117.127251  0.0121877315  0.0130072925
  118.498772  0.0124147944  0.0131040029
  119.886337  0.0125753097  0.0130116176
  121.290161  0.0125900395  0.0129281143
  122.710419  0.0127017768  0.012768453
  124.147308  0.0127516482  0.012551737
  125.601028  0.0127351722  0.0123345703
  127.071762  0.0126518076  0.0121464627
  128.559723  0.0126032634  0.0119985892
  130.065109  0.0125933755  0.0118958056
  131.58812  0.0126886265  0.0117938081
  133.128967  0.0128918458  0.0115689924
  134.687851  0.0130364392  0.0110615753
  136.264984  0.0129204579  0.0104794996
  137.860596  0.0126176681  0.0100728078
  139.474884  0.0123233777  0.00984528381
  141.108078  0.01214079  0.00965654477
  142.760391  0.0119260009  0.00939199328
  144.432068  0.0116783073  0.00927848835
  146.123306  0.0115412418  0.00915632118
  147.834351  0.0114367027  0.00901018083
  149.56543  0.0113329366  0.00880572945
  151.316788  0.011114913  0.00872853026
  153.088654  0.0112543926  0.00856038183
  154.881256  0.011093799  0.00809466466
  156.694839  0.0107675465  0.00794092752
  158.529678  0.0105657261  0.00788614526
  160.386002  0.010438663  0.00778289186
  162.264053  0.0103187924  0.00775307743
  164.164093  0.0103008328  0.00768591044
  166.086395  0.0103105791  0.00754397735
  168.031189  0.0102926707  0.00741497846
  169.998779  0.0103905946  0.00722610485
  171.989395  0.0104517983  0.00685267616
  174.003326  0.0104002133  0.00649548136
  176.040833  0.0102053834  0.00614528265
  178.102203  0.00997503754  0.00587681122
  180.187698  0.0097049335  0.00568039343
  182.297638  0.00959212799  0.00550560467
  184.432251  0.00942860264  0.00532999402
  186.591888  0.00925373193  0.005159338
  188.77681  0.00909242779  0.00499387598
  190.987305  0.00893419888  0.00483102119
  193.223679  0.00877712294  0.00467353873
  195.486267  0.00862142351  0.00452134805
  197.775314  0.00846704654  0.00437425775
  200.091187  0.00831260346  0.00423209649
  202.434174  0.00815910008  0.00409610616
  204.804596  0.00800697412  0.00396645209
  207.202774  0.00785930268  0.00384271936
  209.629044  0.00771474838  0.00372299389
  212.08371  0.00757309329  0.00360714411
  214.567123  0.00743413065  0.00349503919
  217.07962  0.00730016036  0.0033865429
  219.621536  0.00716993026  0.00328054046
  222.193207  0.00704248575  0.00317552406
  224.795013  0.00691525545  0.00306645478
  227.427261  0.0067864568  0.00296118692
  230.090347  0.00665797386  0.00285958685
  232.784607  0.00653031282  0.00276152906
  235.510422  0.00640342757  0.00266688876
  238.268158  0.00627714721  0.00257589994
  241.058182  0.00615284825  0.00248882198
  243.880859  0.0060308706  0.00240545068
  246.736618  0.00591265224  0.00232488429
  249.625793  0.00579631282  0.00224540709
  252.548813  0.0056814556  0.00216719159
  255.506058  0.00556702213  0.00209131883
  258.497955  0.00545386411  0.00201810338
  261.524841  0.00534229027  0.00194746058
  264.587189  0.00523235602  0.00187929964
  267.685394  0.00512387557  0.00181352731
  270.819885  0.00501718698  0.00175006443
  273.991089  0.00491229771  0.00168880622
  277.199432  0.0048091379  0.00162967027
  280.445312  0.00470762793  0.00157255982
  283.729218  0.00460791169  0.00151743309
  287.051544  0.00450999616  0.00146423373
  290.412842  0.00441382267  0.00141290331
  293.813446  0.00431957468  0.00136337674
  297.253876  0.00422717491  0.0013153319
  300.734589  0.00413654279  0.00126855436
  304.256073  0.00404719496  0.00122291502
  307.818817  0.0039592078  0.00117891771
  311.423248  0.0038726693  0.00113650737
  315.069855  0.00378762349  0.00109562639
  318.759216  0.00370401167  0.00105621608
  322.49176  0.00362196867  0.00101822789
  326.268005  0.00354148773  0.000981610967
  330.08847  0.00346247852  0.000946312328
  333.953674  0.00338494172  0.00091228541
  337.864136  0.00330893532  0.000879484811
  341.820374  0.00323444256  0.000847866293
  345.822937  0.00316138309  0.000817385851
  349.872406  0.00308980374  0.000788003323
  353.969269  0.00301973289  0.000759680057
  358.114105  0.00295120454  0.000732376298
  362.307465  0.00288443104  0.000706056831
  366.549927  0.00281917467  0.000679931312
  370.842102  0.00275526196  0.000653862371
  375.184509  0.00269174064  0.000628414331
  379.577789  0.00262892083  0.000603957043
  384.022461  0.00256706029  0.000580445281
  388.519226  0.00250624586  0.000557838124
  393.068604  0.002446339  0.00053608563
  397.671326  0.00238744053  0.000515178312
  402.32785  0.00232959189  0.000495085376
  407.038971  0.00227274606  0.000475774927
  411.805237  0.0022167461  0.000457215734
  416.627319  0.00216174847  0.000439381954
  421.505829  0.00210773316  0.000422244571
  426.441498  0.00205457048  0.000405775732
  431.434967  0.00200219639  0.000389949564
  436.486908  0.00195070775  0.000374740514
  441.597961  0.00190007198  0.000360124162
  446.76889  0.00185005239  0.000346078596
  452.000397  0.00180071127  0.000332582218
  457.293152  0.00175209891  0.000319602113
  462.647858  0.00170418306  0.000307070033
  468.065277  0.00165635278  0.000294817582
  473.546143  0.00160885847  0.00028299581
  479.091156  0.00156162039  0.000271648343
  484.701111  0.00151422666  0.000260755536
  490.37677  0.00146626576  0.000250300101
  496.118896  0.00141791347  0.00024026449
  501.928253  0.0013689968  0.000230631267
  507.805664  0.00131759082  0.000221382696
  513.751831  0.00126305211  0.000212505416
  519.767639  0.00120433536  0.000203984819
  525.853882  0.00113946164  0.000195805871
  532.011475  0.00104879879  0.00018795504
  538.241089  0.000736542454  0.000180419156
  544.543701  0.000573998317  0.000600547821
  550.920044  0.000917931728  0.000576733204
  557.371094  0.00101968751  0.000553862366
  563.897705  0.00105309451  0.000531910278
  570.500732  0.0010688348  0.000510853075
  577.18103  0.00107294612  0.00049079489
  583.939636  0.00107227836  0.000471494626
  590.777344  0.00106805994  0.000452905719
  597.695129  0.00106082286  0.000435002235
  604.693848  0.00105096598  0.000417804695
  611.774597  0.00103977707  0.000401285972
  618.938171  0.00102747837  0.000385416963
  626.18573  0.00101405475  0.000370160415
  633.518066  0.000999928685  0.000355356373
  640.93634  0.000985307153  0.00034099273
  648.441467  0.000970227644  0.000327048736
  656.034424  0.000954304007  0.000313511991
  663.71637  0.000938004232  0.000300535059
  671.48822  0.000921422965  0.000288213952
  679.351074  0.000904550834  0.000276704552
  687.305969  0.000887751696  0.000265934796
  695.354065  0.000871219439  0.000255675899
  703.496338  0.000854966696  0.000245856354
  711.734009  0.000838945445  0.000236211723
  720.068176  0.00082290126  0.000226808465
  728.499817  0.000806947763  0.000217739944
  737.030273  0.000791115453  0.000209038306
  745.660645  0.000775375753  0.000200681694
  754.392029  0.000759831921  0.00019265688
  763.225586  0.000744499674  0.000184945311
  772.162659  0.000729384948  0.000177523674
  781.204346  0.000714463589  0.000170328814
  790.35199  0.000699736818  0.000163375764
  799.606689  0.000685211504  0.00015665777
  808.969727  0.000670804351  0.000150162465
  818.442505  0.000656574732  0.000143932019
  828.026123  0.000642546278  0.000137960087
  837.721924  0.000628722075  0.000132235698
  847.531372  0.000615057535  0.000126803119
  857.455566  0.000601637003  0.000121629775
  867.496033  0.000588474388  0.000116700816
  877.654114  0.000575590006  0.000112009031
  887.93103  0.000562976289  0.000107505984
  898.328369  0.000550632831  0.000103172533
  908.847412  0.000538556546  9.89842229E-05
  919.489624  0.000526702323  9.4945819E-05
  930.256531  0.000515081629  9.10011004E-05
  941.149475  0.000503674324  8.71853044E-05
  952.169922  0.00049245503  8.35146056E-05
  963.319458  0.000481410272  7.99804984E-05
  974.599548  0.000470572093  7.65949226E-05
  986.011719  0.000459940056  7.33529596E-05
  997.557434  0.000449502666  7.02495163E-05
  1009.2384  0.000439266209  6.72790629E-05
  1021.05627  0.000429240172  6.44419415E-05
  1033.01245  0.000419423013  6.17330224E-05
  1045.10852  0.000409811299  5.9127593E-05
  1057.34644  0.000400391  5.66239833E-05
  1069.72742  0.000391161913  5.42226189E-05
  1082.25354  0.000382115366  5.19229361E-05
  1094.92627  0.000373244693  4.97366382E-05
  1107.74744  0.000364567764  4.76530768E-05
  1120.71875  0.000356089557  4.56659545E-05
  1133.84192  0.000347797206  4.37617964E-05
  1147.11865  0.00033968559  4.19370845E-05
  1160.55103  0.000331752992  4.01882498E-05
  1174.14062  0.000323995017  3.85121093E-05
  1187.88928  0.000316404621  3.69057561E-05
  1201.79907  0.000308981776  3.53661308E-05
  1215.87158  0.000301723514  3.38904938E-05
  1230.10889  0.000294623693  3.24761277E-05
  1244.51306  0.000287679897  3.1117921E-05
  1259.08569  0.000280890672  2.98144005E-05
  1273.8291  0.000274251244  2.85632032E-05
  1288.74512  0.000267751049  2.73605201E-05
  1303.83594  0.000261391106  2.62078775E-05
  1319.10327  0.000255170453  2.51033998E-05
  1334.54944  0.000249084085  2.40454865E-05
  1350.17651  0.000243126939  2.30319602E-05
  1365.98645  0.000237300672  2.20613329E-05
  1381.98169  0.0002316022  2.11316856E-05
  1398.16406  0.000226022821  2.02407846E-05
  1414.53601  0.000220562622  1.93870164E-05
  1431.09973  0.000215221095  1.85692043E-05
  1447.8573  0.000209994178  1.77858037E-05
  1464.81116  0.000204873329  1.70347012E-05
  1481.96338  0.000199860486  1.63141322E-05
  1499.31665  0.000194952867  1.56212227E-05
  1516.87305  0.000190140985  1.49519401E-05
  1534.63501  0.000185414974  1.4310649E-05
  1552.60498  0.000180780393  1.3696892E-05
  1570.7854  0.00017623468  1.3109393E-05
  1589.17871  0.000171755906  1.25468623E-05
  1607.78723  0.000167351041  1.20084633E-05
  1626.61377  0.000163018034  1.14932054E-05
  1645.66077  0.000158744297  1.10000747E-05
  1664.93079  0.000154497568  1.05280014E-05
  1684.42651  0.000150287116  1.00761736E-05
  1704.15051  0.000146103863  9.6437434E-06
  1724.10535  0.000141881959  9.22987056E-06
  1744.29395  0.000137558804  8.83064058E-06
  1764.71887  0.000133086432  8.44770148E-06
  1785.38306  0.000128415224  8.08084496E-06
  1806.28906  0.000122535435  7.72928979E-06
  1827.44006  0.000102887156  7.39298957E-06
  1848.83875  0.000112514455  2.38092234E-05
  1870.48779  0.000114795104  2.28626886E-05
  1892.39038  0.000115464711  2.1953836E-05
  1914.54968  0.000114637485  2.10810704E-05
  1936.96814  0.000113387243  2.02430165E-05
  1959.64917  0.000111888301  1.94383229E-05
  1982.59595  0.000110217901  1.86656471E-05
  2005.81152  0.000108402521  1.7922921E-05
  2029.29858  0.0001065408  1.72090331E-05
  2053.06104  0.000104645449  1.65216115E-05
  2077.10156  0.000102718273  1.5861222E-05
  2101.42334  0.000100773897  1.52211232E-05
  2126.03027  9.88324318E-05  1.46050852E-05
  2150.92529  9.68976965E-05  1.40131415E-05
  2176.11157  9.49641399E-05  1.34437723E-05
  2201.59302  9.30463211E-05  1.28962174E-05
  2227.3728  9.11488896E-05  1.23701266E-05
  2253.45459  8.92722455E-05  1.18649177E-05
  2279.84155  8.74134203E-05  1.13790138E-05
  2306.5376  8.5581647E-05  1.09121884E-05
  2333.54614  8.37773405E-05  1.04638102E-05
  2360.87109  8.19978668E-05  1.00332281E-05
  2388.51587  8.02451323E-05  9.61928345E-06
  2416.48462  7.85220254E-05  9.22188701E-06
  2444.78052  7.682859E-05  8.84047495E-06
  2473.40796  7.51619446E-05  8.4739695E-06
  2502.37061  7.35252761E-05  8.12214239E-06
  2531.67236  7.19189775E-05  7.78449794E-06
  2561.31714  7.0342292E-05  7.46059732E-06
  2591.30908  6.87937427E-05  7.14931548E-06
  2621.65234  6.72751339E-05  6.85071063E-06
  2652.35059  6.57862329E-05  6.5643062E-06
  2683.40869  6.4325759E-05  6.28952102E-06
  2714.83032  6.2893836E-05  6.0255793E-06
  2746.62012  6.14909222E-05  5.77241963E-06
  2778.78174  6.01166321E-05  5.52973097E-06
  2811.32007  5.87691284E-05  5.29688623E-06
  2844.2395  5.74495498E-05  5.07353207E-06
  2877.54443  5.61575289E-05  4.85933379E-06
  2911.2395  5.48922544E-05  4.65395078E-06
  2945.32886  5.36528132E-05  4.456851E-06
  2979.81738  5.24397765E-05  4.26794713E-06
  3014.70972  5.12527404E-05  4.08691722E-06
  3050.01099  5.00905771E-05  3.91329786E-06
  3085.72534  4.89531485E-05  3.74681736E-06
  3121.85791  4.78403163E-05  3.58728266E-06
  3158.41357  4.67516002E-05  3.43443071E-06
  3195.39746  4.5685887E-05  3.28778924E-06
  3232.81421  4.46436061E-05  3.14729618E-06
  3270.66895  4.36242517E-05  3.01270097E-06
  3308.96729  4.26271872E-05  2.88373212E-06
  3347.71411  4.16516741E-05  2.76005835E-06
  3386.91455  4.06977706E-05  2.64160803E-06
  3426.57373  3.97651202E-05  2.52816449E-06
  3466.69751  3.88529115E-05  2.4194444E-06
  3507.29126  3.79609373E-05  2.3152827E-06
  3548.36011  3.70889175E-05  2.21552796E-06
  3589.90991  3.62364663E-05  2.12000464E-06
  3631.94629  3.54028416E-05  2.02841716E-06
  3674.47485  3.45879707E-05  1.94072459E-06
  3717.50171  3.3791428E-05  1.85677447E-06
  3761.03223  3.30127623E-05  1.77638901E-06
  3805.07227  3.22515698E-05  1.69936231E-06
  3849.62817  3.15076286E-05  1.62562105E-06
  3894.70557  3.07806004E-05  1.55503653E-06
  3940.31104  3.00698484E-05  1.48742276E-06
  3986.45044  2.93752455E-05  1.4226863E-06
  4033.13037  2.86964587E-05  1.36070685E-06
  4080.35669  2.8033126E-05  1.30141416E-06
  4128.13623  2.73847963E-05  1.24462622E-06
  4176.47461  2.67512678E-05  1.1902963E-06
  4225.37988  2.6132222E-05  1.13831686E-06
  4274.85742  2.55273444E-05  1.08856614E-06
  4324.91406  2.49362656E-05  1.04094556E-06
  4375.55713  2.43587292E-05  9.95386699E-07
  4426.79297  2.37944532E-05  9.51799677E-07
  4478.62891  2.3243123E-05  9.10074903E-07
  4531.07227  2.27044075E-05  8.70158033E-07
  4584.12891  2.2178092E-05  8.3197466E-07
  4637.80713  2.16639037E-05  7.95444862E-07
  4692.11426  2.11615297E-05  7.60478372E-07
  4747.05664  2.067075E-05  7.27039776E-07
  4802.64307  2.01912753E-05  6.95056769E-07
  4858.87988  1.9722811E-05  6.64465006E-07
  4915.77539  1.9265206E-05  6.35199456E-07
  4973.3374  1.8818173E-05  6.07211518E-07
  5031.57324  1.83814755E-05  5.8044435E-07
  5090.49072  1.79548097E-05  5.54819508E-07
  5150.09814  1.75380483E-05  5.30319824E-07
  5210.40381  1.71309439E-05  5.06896697E-07
  5271.41553  1.67332237E-05  4.84501356E-07
  5333.1416  1.63447239E-05  4.63075793E-07
  5395.59082  1.59652427E-05  4.42590363E-07
  5458.771  1.559458E-05  4.23002831E-07
  5522.69092  1.52324774E-05  4.04267126E-07
  5587.35938  1.48787767E-05  3.86351132E-07
  5652.78467  1.45332788E-05  3.69223216E-07
  5718.97705  1.41957808E-05  3.52847309E-07
  5785.94385  1.38661399E-05  3.37188794E-07
  5853.69482  1.35441323E-05  3.22220643E-07
  5922.23926  1.32295991E-05  3.07910597E-07
  5991.58643  1.29223872E-05  2.94225543E-07
  6061.74561  1.26223003E-05  2.81141809E-07
  6132.72559  1.23292029E-05  2.6863745E-07
  6204.5376  1.20429195E-05  2.56684928E-07
  6277.18994  1.17632762E-05  2.45260424E-07
  6350.69385  1.14901495E-05  2.34343261E-07
  6425.05762  1.12233238E-05  2.23889231E-07
  6500.29248  1.09627281E-05  2.13909672E-07
  6576.4082  1.07081978E-05  2.04372611E-07
  6653.41553  1.04595874E-05  1.95256419E-07
  6731.32422  1.0216766E-05  1.86539964E-07
  6810.14502  9.97959705E-06  1.78209987E-07
  6889.88916  9.74793329E-06  1.70250232E-07
  6970.56689  9.52164646E-06  1.62644454E-07
  7052.18994  9.30064471E-06  1.55372959E-07
  7134.76807  9.0847725E-06  1.48424604E-07
  7218.31348  8.87391525E-06  1.41785279E-07
  7302.83643  8.66797927E-06  1.35441141E-07
  7388.3501  8.46681542E-06  1.29376971E-07
  7474.86475  8.27033818E-06  1.23582552E-07
  7562.39209  8.07844026E-06  1.18046415E-07
  7650.94482  7.89099795E-06  1.12756972E-07
  7740.53467  7.70793304E-06  1.07701524E-07
  7831.17285  7.52912047E-06  1.02871631E-07
  7922.87305  7.35444883E-06  9.8257587E-08
  8015.646  7.18386082E-06  9.38485627E-08
  8109.50684  7.01724412E-06  8.96358401E-08
  8204.46484  6.85450323E-06  8.56112479E-08
  8300.53613  6.69552946E-06  8.17662809E-08
  8397.73242  6.54027644E-06  7.80922065E-08
  8496.06641  6.3886273E-06  7.45826156E-08
  8595.55176  6.2404938E-06  7.12302324E-08
  8696.20215  6.09581502E-06  6.80269778E-08
  8798.03125  5.95450683E-06  6.49669332E-08
  8901.05273  5.81648237E-06  6.20441796E-08
  9005.28125  5.68165933E-06  5.92527627E-08
  9110.72852  5.54997405E-06  5.65850939E-08
  9217.41113  5.42135103E-06  5.40373541E-08
  9325.34375  5.29571707E-06  5.16040686E-08
  9434.53906  5.17300123E-06  4.92800574E-08
  9545.01465  5.05314301E-06  4.70596113E-08
  9656.7832  4.93607376E-06  4.49388757E-08
  9769.85938  4.82172663E-06  4.2913527E-08
  9884.26074  4.71003386E-06  4.09789891E-08
  10000.001  4.60093906E-06  3.91313861E-08];
end   

if(Material == 'AO')
    RefractiveData =[30.  0.159589529  0.257407457
  30.4181843  0.158588827  0.251484752
  30.8421955  0.157544509  0.245699137
  31.2721214  0.156465441  0.240047306
  31.7080383  0.155364513  0.234526515
  32.150032  0.154258102  0.229133561
  32.5981827  0.153152883  0.223860025
  33.0525818  0.152049959  0.218689099
  33.5133171  0.150952801  0.213626057
  33.9804764  0.149873585  0.208680451
  34.4541473  0.14883475  0.203849524
  34.9344177  0.147871196  0.199130535
  35.4213829  0.147088736  0.194520906
  35.9151382  0.14660652  0.190018177
  36.4157791  0.146447837  0.184822276
  36.9233932  0.145962775  0.179172441
  37.4380875  0.144872025  0.17352958
  37.9599533  0.143498763  0.16806531
  38.4890938  0.141937658  0.16277428
  39.0256119  0.140223309  0.157650471
  39.5696068  0.138410076  0.152688965
  40.1211853  0.136519924  0.147884429
  40.6804543  0.134570464  0.14323014
  41.2475166  0.132572591  0.138715923
  41.8224831  0.130532548  0.134334922
  42.405468  0.128456563  0.130093008
  42.9965744  0.126352474  0.12598522
  43.5959282  0.124232695  0.122007497
  44.2036324  0.122107394  0.118155837
  44.8198051  0.11998383  0.114426047
  45.4445686  0.117869668  0.110814326
  46.0780411  0.115773357  0.107317001
  46.7203445  0.113706611  0.103930391
  47.3715973  0.111702308  0.100650944
  48.0319328  0.109785482  0.0974342525
  48.7014732  0.108000174  0.0941764116
  49.3803444  0.106138915  0.0907695889
  50.0686798  0.104116149  0.0873551145
  50.7666092  0.101958051  0.0840690881
  51.4742699  0.0997318998  0.0809066519
  52.1917915  0.0974606648  0.0778631642
  52.9193192  0.0951452255  0.0749343857
  53.6569862  0.0928090289  0.0721226037
  54.4049339  0.090463154  0.0694213957
  55.163311  0.0881131366  0.0668231174
  55.9322586  0.0857608765  0.0643220544
  56.7119217  0.0834067389  0.0619145744
  57.5024567  0.0810515657  0.0595973134
  58.3040123  0.0786839947  0.0573667996
  59.1167336  0.0763062835  0.0552196614
  59.9407921  0.0739230886  0.0531617366
  60.7763329  0.0715382025  0.0511867777
  61.6235237  0.0691487342  0.0492874533
  62.4825172  0.0667423904  0.0474587902
  63.3534927  0.0643019155  0.0457014106
  64.2366028  0.0618230253  0.0440497063
  65.1320343  0.0593195111  0.0424633138
  66.0399323  0.0567607768  0.0409369692
  66.960495  0.0541167893  0.039468091
  67.8938904  0.0513420403  0.0380524099
  68.8402939  0.0483608991  0.0366869867
  69.7998886  0.0450434498  0.0353732631
  70.7728577  0.0410916544  0.0341157243
  71.7593994  0.0350063369  0.0329067856
  72.7596817  0.0214303695  0.0415245332
  73.7739182  0.0314120203  0.0479718782
  74.8022842  0.0341872759  0.0472810157
  75.844986  0.0349336788  0.0466382429
  76.9022217  0.0350846127  0.0460421853
  77.9741974  0.0349594541  0.0454916283
  79.0611115  0.0346859284  0.0449853018
  80.1631851  0.0343798846  0.0445220582
  81.2806168  0.034058135  0.0440582037
  82.4136276  0.0337184705  0.0436118655
  83.5624237  0.0333827958  0.0432012454
  84.7272415  0.0331137478  0.0428269617
  85.9082947  0.0329997838  0.0424758159
  87.1058121  0.0330077484  0.0419223569
  88.320015  0.0329019763  0.0411421247
  89.5511475  0.0326788798  0.0403568596
  90.7994385  0.0323880091  0.0395967923
  92.0651398  0.0320633911  0.0388610177
  93.3484802  0.0317199826  0.0381486453
  94.649704  0.0313672721  0.0374587998
  95.9690704  0.0310143791  0.0367907137
  97.3068314  0.0306724161  0.0361435413
  98.6632385  0.0303614438  0.035499759
  100.038544  0.0300443135  0.0348381177
  101.433029  0.0297152828  0.0341794789
  102.846954  0.0293882228  0.0335394219
  104.280579  0.0290730894  0.0329039954
  105.734192  0.0287537444  0.0322540067
  107.208076  0.0284123588  0.0316256993
  108.702492  0.0280739609  0.0310182888
  110.217751  0.0277412403  0.0304309484
  111.754128  0.0274172295  0.0298627857
  113.311913  0.0271048415  0.0293129962
  114.891418  0.026806796  0.0287808515
  116.492943  0.0265263543  0.0282656346
  118.116798  0.0262727011  0.0277669001
  119.763275  0.0260504242  0.0272836592
  121.432716  0.0258704908  0.02681542
  123.125427  0.0257718656  0.0263616294
  124.841721  0.0257522911  0.0258112662
  126.581955  0.0257361569  0.0250911228
  128.346436  0.025596939  0.0243358947
  130.135513  0.0253775008  0.0236047059
  131.949539  0.025124941  0.0228967685
  133.788834  0.0248485506  0.0222112965
  135.653778  0.0245560594  0.0215505119
  137.544724  0.0242533498  0.0209123585
  139.462021  0.0239440035  0.020294033
  141.406052  0.0236300658  0.0196948946
  143.377167  0.0233137272  0.019114336
  145.375778  0.0229980126  0.0185516812
  147.402222  0.0226866752  0.0180064235
  149.45694  0.022386482  0.0174779389
  151.540268  0.0220937561  0.0169428345
  153.652664  0.0217951927  0.0164005198
  155.794495  0.0214797594  0.0158751197
  157.966202  0.0211596172  0.0153668988
  160.168167  0.0208380725  0.0148753431
  162.400818  0.0205179304  0.014399874
  164.664597  0.0202009063  0.0139399851
  166.95993  0.0198888816  0.0134951109
  169.287262  0.0195837989  0.0130647505
  171.647034  0.0192880854  0.01264844
  174.039703  0.0190055575  0.0122457007
  176.465729  0.0187495351  0.01185604
  178.925552  0.0185395069  0.0114405667
  181.419678  0.0183221065  0.0109626371
  183.948563  0.0180547833  0.0104718953
  186.512726  0.0177462995  0.00999784004
  189.112595  0.0174224395  0.00954537001
  191.748734  0.0170877576  0.00911340397
  194.4216  0.0167454127  0.00870115403
  197.131729  0.0163983796  0.00830758922
  199.879639  0.0160500295  0.00793188717
  202.665863  0.0157012381  0.00757158315
  205.490906  0.0153521737  0.00722676236
  208.355347  0.0150034325  0.00689769862
  211.259705  0.0146562271  0.00658364408
  214.204544  0.0143108862  0.00628399942
  217.190445  0.013966837  0.00599800935
  220.217957  0.0136241652  0.00572507828
  223.287674  0.0132809756  0.00546858413
  226.400192  0.0129425731  0.00523287989
  229.556091  0.0126151573  0.00501425751
  232.755981  0.0123006115  0.00480486592
  236.000458  0.0119935917  0.00460434193
  239.290176  0.011692293  0.0044130208
  242.625763  0.0113994805  0.00423210626
  246.007828  0.0111153219  0.004058972
  249.437057  0.0108390534  0.00389293581
  252.914062  0.0105702234  0.0037337183
  256.439545  0.0103088068  0.003581041
  260.01416  0.0100551117  0.00343462289
  263.638641  0.0098116193  0.00329421717
  267.313599  0.00957846269  0.00315581542
  271.039825  0.00934897736  0.00301017612
  274.817963  0.00911845081  0.00286733382
  278.648773  0.00888785906  0.00273118843
  282.53299  0.0086597912  0.00260143215
  286.471375  0.00843503047  0.00247779535
  290.4646  0.00821391866  0.00236002519
  294.513519  0.00799661689  0.00224784645
  298.618896  0.00778357219  0.00214100722
  302.781494  0.00757484045  0.0020392423
  307.002106  0.00737045007  0.00194231456
  311.281525  0.00717043038  0.00184999872
  315.620605  0.00697479583  0.00176206825
  320.020203  0.00678350683  0.00167831499
  324.48111  0.00659633661  0.0015985386
  329.004181  0.00641340902  0.00152256317
  333.590363  0.00623468868  0.00145019463
  338.240417  0.00606008479  0.00138126279
  342.955322  0.00588948326  0.00131561037
  347.735901  0.00572276441  0.00125308183
  352.58316  0.00555975083  0.00119352248
  357.497986  0.00539974496  0.00113679247
  362.481323  0.00524314819  0.00108494668
  367.534119  0.00509148417  0.00103625236
  372.657349  0.00494445954  0.000989930588
  377.85199  0.00480158953  0.000945682346
  383.119019  0.00466254866  0.00090340618
  388.459473  0.00452717114  0.000862993998
  393.87439  0.00439522602  0.000824345916
  399.364807  0.00426650885  0.000787420897
  404.931732  0.00414099498  0.000752148509
  410.576233  0.00401856145  0.000718453433
  416.299469  0.00389910187  0.000686268846
  422.102448  0.00378251798  0.000655530428
  427.986359  0.00366873341  0.000626169902
  433.95224  0.00355776609  0.000598123297
  440.001282  0.00344922417  0.000570365053
  446.134674  0.00334231183  0.000543541566
  452.353577  0.00323699485  0.00051792938
  458.659119  0.00313326344  0.000493532687
  465.052582  0.00303100375  0.000470283208
  471.535156  0.00292998459  0.000448126753
  478.108093  0.00282990746  0.000427015912
  484.772644  0.00272991275  0.00040689655
  491.530151  0.00262953807  0.000387706881
  498.381775  0.00252800644  0.000369349058
  505.328979  0.00242387294  0.000351741532
  512.372986  0.00231477036  0.000334877899
  519.515198  0.00219654036  0.000318791223
  526.756958  0.00206106668  0.000303498004
  534.09967  0.00187973399  0.000288972078
  541.544739  0.00102813251  0.000275156373
  549.093506  0.00155040552  0.000924342021
  556.74762  0.00185235357  0.000880751293
  564.508362  0.00190840638  0.000839145388
  572.377319  0.00192619301  0.000799561385
  580.355957  0.00192534109  0.00076202827
  588.445801  0.00191324623  0.000726321014
  596.648438  0.00189358462  0.00069232547
  604.965332  0.00186941924  0.000659920915
  613.398315  0.00184200739  0.000629029644
  621.948669  0.00181227608  0.000599563064
  630.618347  0.00178092695  0.000571301265
  639.408813  0.00174841471  0.000543960661
  648.321838  0.00171480887  0.000517401088
  657.35907  0.00167966099  0.000491745479
  666.522278  0.00164349971  0.000467363832
  675.813293  0.00160670688  0.000444931997
  685.233704  0.00157012884  0.000424312195
  694.785522  0.00153434125  0.000405063591
  704.470398  0.00149944657  0.000386642612
  714.290344  0.00146517751  0.000368520821
  724.247192  0.0014308478  0.000350840972
  734.342834  0.00139673252  0.000334022101
  744.579163  0.00136303273  0.000318006991
  754.958191  0.0013298071  0.00030275443
  765.481934  0.00129712233  0.000288207695
  776.152344  0.00126501813  0.000274284655
  786.971436  0.0012334598  0.000260897184
  797.941406  0.00120229938  0.000248044817
  809.06427  0.00117159623  0.000235824409
  820.342224  0.00114142708  0.00022420552
  831.777283  0.00111180369  0.000213158914
  843.371826  0.00108272303  0.000202706113
  855.127991  0.00105421024  0.000192853797
  867.047974  0.00102633005  0.000183565964
  879.134155  0.000999158598  0.000174800647
  891.388855  0.000972646696  0.000166454396
  903.814331  0.000946788525  0.000158507493
  916.413025  0.000921585946  0.000150940585
  929.187317  0.000897017133  0.000143637837
  942.139648  0.000873017882  0.00013658464
  955.272583  0.000849521835  0.000129843349
  968.588562  0.000826529169  0.000123406411
  982.09021  0.000804036448  0.000117286887
  995.779968  0.000782059855  0.000111476729
  1009.66058  0.000760596653  0.000105960484
  1023.7348  0.000739658542  0.000100750651
  1038.005  0.000719260366  9.58060409E-05
  1052.47424  0.000699386641  9.10734598E-05
  1067.14514  0.000679980963  8.65462571E-05
  1082.02051  0.000661030004  8.22429211E-05
  1097.10339  0.000642536499  7.81536728E-05
  1112.39636  0.000624495384  7.42673801E-05
  1127.90259  0.000606899092  7.05748171E-05
  1143.62488  0.000589736213  6.70664449E-05
  1159.56641  0.000572995166  6.37323101E-05
  1175.73022  0.00055666687  6.05631649E-05
  1192.11926  0.000540733628  5.75516897E-05
  1208.73682  0.000525179028  5.46900628E-05
  1225.58594  0.000509999576  5.19706773E-05
  1242.66992  0.000495181768  4.93843436E-05
  1259.99194  0.000480712391  4.69238475E-05
  1277.55554  0.00046657311  4.45822006E-05
  1295.36401  0.000452743989  4.23537203E-05
  1313.42078  0.000439213763  4.02366604E-05
  1331.72913  0.000425937469  3.82256876E-05
  1350.29272  0.000412907801  3.63150575E-05
  1369.11511  0.000400098827  3.45002263E-05
  1388.19983  0.000387476262  3.27762209E-05
  1407.55054  0.000374994997  3.11381227E-05
  1427.17102  0.000362594903  2.95816662E-05
  1447.06506  0.000350195303  2.81031425E-05
  1467.23621  0.000337580452  2.66952793E-05
  1487.68884  0.000324426685  2.53527705E-05
  1508.42639  0.000310105592  2.40620302E-05
  1529.453  0.000292410201  2.28305726E-05
  1550.77271  0.000235176805  2.16614189E-05
  1572.38977  0.000262758869  6.99235534E-05
  1594.30786  0.000275416212  6.66584092E-05
  1616.53174  0.000276055274  6.35462857E-05
  1639.06531  0.000273787649  6.05803034E-05
  1661.91296  0.000270278979  5.77526698E-05
  1685.0791  0.00026603174  5.50572877E-05
  1708.56824  0.000261337118  5.24879506E-05
  1732.38477  0.000256366591  5.00251153E-05
  1756.53333  0.000251214631  4.7646954E-05
  1781.01831  0.000245924952  4.5370205E-05
  1805.84485  0.000240545007  4.31925546E-05
  1831.01721  0.000235142754  4.11192887E-05
  1856.54065  0.00022974849  3.91457434E-05
  1882.41992  0.000224383577  3.72669565E-05
  1908.65979  0.00021906411  3.54784388E-05
  1935.2655  0.000213802792  3.37760721E-05
  1962.24194  0.000208610232  3.21555635E-05
  1989.59473  0.000203485994  3.06127622E-05
  2017.32861  0.000198453738  2.91570923E-05
  2045.44897  0.000193520478  2.77493746E-05
  2073.96143  0.000188670878  2.63983966E-05
  2102.87134  0.000183904587  2.51099937E-05
  2132.18433  0.000179229741  2.38823122E-05
  2161.90576  0.000174647837  2.27129658E-05
  2192.0415  0.000170158251  2.15975724E-05
  2222.59741  0.000165761536  2.05355464E-05
  2253.57935  0.000161460208  1.95238445E-05
  2284.99292  0.000157253628  1.85603549E-05
  2316.84448  0.000153141504  1.76429676E-05
  2349.13989  0.000149123152  1.67694707E-05
  2381.8855  0.000145197453  1.59376632E-05
  2415.08789  0.000141363751  1.51460699E-05
  2448.75293  0.000137619441  1.43925772E-05
  2482.88721  0.000133965048  1.36751005E-05
  2517.49707  0.000130399116  1.29924529E-05
  2552.58984  0.000126920015  1.23430136E-05
  2588.17163  0.000123526479  1.17252212E-05
  2624.24927  0.000120217293  1.11375912E-05
  2660.82983  0.00011699093  1.05784993E-05
  2697.92041  0.000113844762  1.00468824E-05
  2735.52783  0.000110777895  9.54099687E-06
  2773.65967  0.000107789092  9.06003606E-06
  2812.323  0.000104876795  8.60281216E-06
  2851.52539  0.000102039252  8.16811826E-06
  2891.27393  9.92748683E-05  7.75483477E-06
  2931.57666  9.65822182E-05  7.36196989E-06
  2972.44141  9.39591264E-05  6.98846179E-06
  3013.87549  9.1404414E-05  6.63361607E-06
  3055.88745  8.89167568E-05  6.29632268E-06
  3098.48486  8.64944959E-05  5.97577309E-06
  3141.67603  8.41361179E-05  5.67122015E-06
  3185.46924  8.18400804E-05  5.38189306E-06
  3229.8728  7.96048917E-05  5.10700784E-06
  3274.89575  7.74292057E-05  4.84589964E-06
  3320.54614  7.5311269E-05  4.59774674E-06
  3366.83252  7.32498956E-05  4.36211667E-06
  3413.7644  7.12436959E-05  4.13835596E-06
  3461.35059  6.9291309E-05  3.92584707E-06
  3509.59961  6.73914183E-05  3.72402451E-06
  3558.52148  6.55426193E-05  3.53235328E-06
  3608.12549  6.37437915E-05  3.35039113E-06
  3658.4209  6.1993429E-05  3.17756189E-06
  3709.41724  6.02903237E-05  3.0135011E-06
  3761.12451  5.8633439E-05  2.85777287E-06
  3813.55249  5.70214579E-05  2.70995179E-06
  3866.71143  5.54532417E-05  2.56963995E-06
  3920.61133  5.39277644E-05  2.43646195E-06
  3975.26221  5.24437419E-05  2.31008175E-06
  4030.67554  5.10001155E-05  2.19005346E-06
  4086.86084  4.95958629E-05  2.07621838E-06
  4143.82959  4.82299583E-05  1.9682218E-06
  4201.59229  4.69013503E-05  1.86577256E-06
  4260.16016  4.56090966E-05  1.76859601E-06
  4319.54443  4.43522767E-05  1.67641838E-06
  4379.75635  4.31299195E-05  1.58897626E-06
  4440.80811  4.1940948E-05  1.50603887E-06
  4502.71045  4.0784711E-05  1.42737645E-06
  4565.47559  3.96602118E-05  1.35275661E-06
  4629.11572  3.85665662E-05  1.28200611E-06
  4693.64355  3.75029886E-05  1.21491792E-06
  4759.07031  3.64687221E-05  1.15129444E-06
  4825.40918  3.54629083E-05  1.09096322E-06
  4892.67285  3.44847249E-05  1.03377579E-06
  4960.87402  3.35335862E-05  9.79530114E-07
  5030.02588  3.26085719E-05  9.28106942E-07
  5100.14209  3.17090744E-05  8.79359561E-07
  5171.23486  3.08344206E-05  8.33139154E-07
  5243.31885  2.99838612E-05  7.89320154E-07
  5316.4082  2.91567139E-05  7.47791034E-07
  5390.51611  2.83523714E-05  7.0842799E-07
  5465.65723  2.75703733E-05  6.71116197E-07
  5541.84521  2.68099157E-05  6.35732476E-07
  5619.09521  2.6070411E-05  6.02210775E-07
  5697.42285  2.5351319E-05  5.70447639E-07
  5776.8418  2.46521322E-05  5.40342796E-07
  5857.36768  2.39723104E-05  5.11811947E-07
  5939.01611  2.33112187E-05  4.84773636E-07
  6021.80273  2.2668386E-05  4.59131115E-07
  6105.74316  2.20433412E-05  4.34859686E-07
  6190.85449  2.1435555E-05  4.11846088E-07
  6277.15186  2.08445599E-05  3.90039276E-07
  6364.65137  2.02698975E-05  3.69380842E-07
  6453.37158  1.97111221E-05  3.49806839E-07
  6543.32812  1.91678264E-05  3.31262527E-07
  6634.53809  1.86394827E-05  3.13691743E-07
  6727.02051  1.81257892E-05  2.97048501E-07
  6820.7915  1.76263366E-05  2.81279853E-07
  6915.86914  1.71406518E-05  2.66343307E-07
  7012.27295  1.66683749E-05  2.52194496E-07
  7110.02002  1.62091819E-05  2.38791728E-07
  7209.12988  1.57626928E-05  2.26096233E-07
  7309.62109  1.53284764E-05  2.14070923E-07
  7411.51318  1.49063535E-05  2.02681377E-07
  7514.82617  1.4495834E-05  1.91892127E-07
  7619.57861  1.40966613E-05  1.81673869E-07
  7725.79102  1.37085453E-05  1.71996859E-07
  7833.48438  1.33311532E-05  1.6283154E-07
  7942.67969  1.29641621E-05  1.54151849E-07
  8053.396  1.26073028E-05  1.45934635E-07
  8165.65625  1.22603606E-05  1.38150597E-07
  8279.48047  1.19229489E-05  1.30777877E-07
  8394.89258  1.15948578E-05  1.2379769E-07
  8511.91211  1.12758453E-05  1.17187078E-07
  8630.56348  1.09656376E-05  1.10927516E-07
  8750.86914  1.06639873E-05  1.05002009E-07
  8872.85156  1.03706761E-05  9.93915847E-08
  8996.53418  1.00854741E-05  9.40785512E-08
  9121.94141  9.80813093E-06  8.90475249E-08
  9249.0957  9.53842664E-06  8.4285098E-08
  9378.02344  9.27618476E-06  7.97763491E-08
  9508.74805  9.02117608E-06  7.55083605E-08
  9641.29492  8.77318871E-06  7.14681221E-08
  9775.68848  8.53206802E-06  6.76423255E-08
  9911.95703  8.2975821E-06  6.40226077E-08
  10050.125  8.06954995E-06  6.05938553E-08
  10190.2178  7.8478397E-06  5.73480179E-08
  10332.2637  7.63221851E-06  5.42753824E-08
  10476.29  7.42254542E-06  5.13671417E-08
  10622.3232  7.21866445E-06  4.86145773E-08
  10770.3926  7.02039097E-06  4.6008882E-08
  10920.5264  6.82756627E-06  4.3542741E-08
  11072.7529  6.64007439E-06  4.12084304E-08
  11227.1006  6.45775253E-06  3.89988486E-08
  11383.6006  6.28044427E-06  3.69075721E-08
  11542.2822  6.10802181E-06  3.49284832E-08
  11703.1748  5.94034964E-06  3.30556773E-08
  11866.3105  5.77728679E-06  3.12832427E-08
  12031.7207  5.61872002E-06  2.96056371E-08
  12199.4365  5.46453202E-06  2.80183681E-08
  12369.4902  5.31457727E-06  2.65158295E-08
  12541.9141  5.16874161E-06  2.50942485E-08
  12716.7412  5.02692274E-06  2.37490312E-08
  12894.0059  4.88901196E-06  2.24761916E-08
  13073.7412  4.75489878E-06  2.12717701E-08
  13255.9824  4.62446769E-06  2.01318286E-08
  13440.7637  4.49763183E-06  1.90534628E-08
  13628.1211  4.3742798E-06  1.80328534E-08
  13818.0889  4.25432381E-06  1.70673804E-08
  14010.7061  4.13766338E-06  1.61537823E-08
  14206.0068  4.02420619E-06  1.52894035E-08
  14404.0312  3.91387039E-06  1.44716292E-08
  14604.8164  3.80657707E-06  1.36978402E-08
  14808.3994  3.70221665E-06  1.29659883E-08
  15014.8203  3.60073295E-06  1.22733326E-08
  15224.1182  3.502043E-06  1.1617483E-08
  15436.335  3.40606198E-06  1.09969855E-08
  15651.5098  3.31271917E-06  1.04099644E-08
  15869.6816  3.22193864E-06  9.85461401E-09
  16090.8965  3.1336449E-06  9.32927957E-09
  16315.1953  3.04778746E-06  8.83234641E-09
  16542.6191  2.96428561E-06  8.36212877E-09
  16773.2148  2.88307274E-06  7.91732546E-09
  17007.0254  2.80409336E-06  7.49651186E-09
  17244.0938  2.72728153E-06  7.09842674E-09
  17484.4668  2.65257495E-06  6.72190614E-09
  17728.1914  2.5799186E-06  6.36574304E-09
  17975.3125  2.50926018E-06  6.0287717E-09
  18225.8789  2.44053786E-06  5.7100582E-09
  18479.9375  2.37370637E-06  5.40853584E-09
  18737.5371  2.30870683E-06  5.12329956E-09
  18998.7285  2.24548785E-06  4.85350959E-09
  19263.5605  2.18400419E-06  4.59830796E-09
  19532.084  2.12420923E-06  4.35691616E-09
  19804.3516  2.06605205E-06  4.12851398E-09
  20080.4141  2.00948807E-06  3.91174915E-09
  20360.3223  1.95448069E-06  3.70717546E-09
  20644.1348  1.90097944E-06  3.51374885E-09
  20931.9023  1.84894361E-06  3.33087735E-09
  21223.6816  1.79833626E-06  3.15798054E-09
  21519.5293  1.74911736E-06  2.99449954E-09
  21819.5  1.70124576E-06  2.83992407E-09
  22123.6523  1.65468578E-06  2.69374301E-09
  22432.0449  1.60940567E-06  2.55550736E-09
  22744.7324  1.56536578E-06  2.42478615E-09
  23061.7832  1.52253051E-06  2.30116526E-09
  23383.252  1.48087122E-06  2.18425256E-09
  23709.2012  1.44035278E-06  2.07368056E-09
  24039.6953  1.40094141E-06  1.96910044E-09
  24374.7949  1.36261269E-06  1.87018356E-09
  24714.5664  1.32533683E-06  1.77661663E-09
  25059.0742  1.28907811E-06  1.68811432E-09
  25408.3848  1.25381416E-06  1.60438274E-09
  25762.5645  1.21951837E-06  1.52516832E-09
  26121.6797  1.18616106E-06  1.45022494E-09
  26485.8008  1.1537154E-06  1.37931466E-09
  26855.  1.12216048E-06  1.31222744E-09
  27229.3438  1.09146913E-06  1.24873956E-09
  27608.9062  1.06161656E-06  1.18865939E-09
  27993.7598  1.03258139E-06  1.13179721E-09
  28383.9766  1.00434295E-06  1.07798048E-09
  28779.6348  9.76877914E-07  1.02703979E-09
  29180.8066  9.50164406E-07  9.78818471E-10
  29587.5723  9.24180256E-07  9.33168653E-10
  30000.0059  8.98901533E-07  8.89947449E-10];
end

if(Material == 'Pt')
    RefractiveData = [30.  0.254413456  0.515174508
  30.4181843  0.256822079  0.505601823
  30.8421955  0.260474533  0.496204913
  31.2721214  0.265988559  0.48685655
  31.7080383  0.275779039  0.476021707
  32.150032  0.283596277  0.456662893
  32.5981827  0.288332701  0.437270641
  33.0525818  0.29198736  0.417169005
  33.5133171  0.293322921  0.395974785
  33.9804764  0.291068196  0.374602616
  34.4541473  0.286496162  0.354383737
  34.9344177  0.279920906  0.335257113
  35.4213829  0.271732837  0.319049597
  35.9151382  0.26392442  0.304180503
  36.4157791  0.256154448  0.290118724
  36.9233932  0.248149037  0.276707381
  37.4380875  0.239778027  0.263965636
  37.9599533  0.23102577  0.251926541
  38.4890938  0.222003818  0.240515023
  39.0256119  0.212336615  0.229619727
  39.5696068  0.201430112  0.219217479
  40.1211853  0.189111426  0.211667821
  40.6804543  0.177833945  0.206366614
  41.2475166  0.168412223  0.202011198
  41.8224831  0.159902215  0.197747856
  42.405468  0.151767656  0.193574518
  42.9965744  0.143658072  0.189489022
  43.5959282  0.134926125  0.186193332
  44.2036324  0.126963809  0.18407242
  44.8198051  0.119731367  0.182354912
  45.4445686  0.112912871  0.18065317
  46.0780411  0.106078245  0.178967297
  46.7203445  0.0986729488  0.17754595
  47.3715973  0.090103671  0.178545535
  48.0319328  0.0841129795  0.181138977
  48.7014732  0.0795983151  0.183884174
  49.3803444  0.0761623681  0.186671078
  50.0686798  0.0737149194  0.189403787
  50.7666092  0.0721011832  0.191976249
  51.4742699  0.0710385442  0.194383562
  52.1917915  0.0706302449  0.196820244
  52.9193192  0.0712968484  0.199288636
  53.6569862  0.0734466314  0.201686442
  54.4049339  0.0761604831  0.202344418
  55.163311  0.0788561255  0.202115893
  55.9322586  0.0817156211  0.201887801
  56.7119217  0.0854135305  0.201231316
  57.5024567  0.0902718231  0.198667407
  58.3040123  0.0934631899  0.194751576
  59.1167336  0.0963613987  0.190912247
  59.9407921  0.0989129692  0.185497105
  60.7763329  0.0999927893  0.179221466
  61.6235237  0.0991728306  0.173372909
  62.4825172  0.0972246677  0.168740213
  63.3534927  0.0956447423  0.165107712
  64.2366028  0.0937506333  0.161552757
  65.1320343  0.0905386582  0.158075228
  66.0399323  0.0872742832  0.157601729
  66.960495  0.0850430056  0.158304393
  67.8938904  0.0838411376  0.159760132
  68.8402939  0.0838454217  0.162252218
  69.7998886  0.086149469  0.165380076
  70.7728577  0.0914246663  0.168567494
  71.7593994  0.0979200304  0.166659176
  72.7596817  0.103998698  0.164377019
  73.7739182  0.111024342  0.160561278
  74.8022842  0.117517412  0.154734328
  75.844986  0.122079633  0.147293121
  76.9022217  0.124804355  0.139175937
  77.9741974  0.126290545  0.131482184
  79.0611115  0.126872197  0.12418621
  80.1631851  0.127118751  0.117257506
  81.2806168  0.126808643  0.110138819
  82.4136276  0.125844717  0.103208221
  83.5624237  0.12423826  0.0967673436
  84.7272415  0.122204885  0.0909131393
  85.9082947  0.120244198  0.0857647061
  87.1058121  0.118624382  0.080908142
  88.320015  0.117264792  0.0753734484
  89.5511475  0.115063339  0.0696132109
  90.7994385  0.112154096  0.0641260594
  92.0651398  0.108631246  0.0592507385
  93.3484802  0.104782723  0.0551253259
  94.649704  0.101296917  0.0516801365
  95.9690704  0.0980305001  0.0484505557
  97.3068314  0.0948010758  0.0454226062
  98.6632385  0.0915453881  0.0425839573
  100.038544  0.0883451626  0.0400966853
  101.433029  0.0852809101  0.0378673337
  102.846954  0.0823662356  0.0357744917
  104.280579  0.0795508698  0.0337975547
  105.734192  0.0768112689  0.0319294855
  107.208076  0.0741187483  0.0301814191
  108.702492  0.0715082735  0.0285494756
  110.217751  0.0689665526  0.0270098131
  111.754128  0.0664805099  0.0255532488
  113.311913  0.0640418157  0.0241828617
  114.891418  0.0616496913  0.0229015835
  116.492943  0.0593106709  0.0216967687
  118.116798  0.0569904819  0.0205559768
  119.763275  0.0547095425  0.0195227358
  121.432716  0.0524552427  0.0185482316
  123.125427  0.0501442663  0.017630564
  124.841721  0.0478440337  0.0169271734
  126.581955  0.0456924438  0.016496826
  128.346436  0.0437300131  0.0160774533
  130.135513  0.0418724157  0.0156687107
  131.949539  0.0400417894  0.0152972089
  133.788834  0.0383142792  0.0150080854
  135.653778  0.0366873443  0.014747059
  137.544724  0.0351369381  0.0144905671
  139.462021  0.0336348899  0.014238541
  141.406052  0.0321566798  0.0140011655
  143.377167  0.0306767356  0.0138424104
  145.375778  0.0293187723  0.0137652233
  147.402222  0.0280374549  0.0136917196
  149.45694  0.0268006325  0.0136186248
  151.540268  0.0256001838  0.0135802645
  153.652664  0.0244558807  0.0135893971
  155.794495  0.0233918987  0.0136208283
  157.966202  0.0223883856  0.0136524905
  160.168167  0.0214294922  0.0136842914
  162.400818  0.020483695  0.0137384748
  164.664597  0.0196047928  0.0138379354
  166.95993  0.0187968016  0.013957072
  169.287262  0.0180515479  0.0140773319
  171.647034  0.0173653029  0.0141975507
  174.039703  0.016740026  0.0143132461
  176.465729  0.0161539856  0.0143958777
  178.925552  0.0156012597  0.0144787859
  181.419678  0.0150842527  0.0145621942
  183.948563  0.0146075329  0.0146461539
  186.512726  0.0141860945  0.014730541
  189.112595  0.0138213979  0.0147907138
  191.748734  0.0134829935  0.0147775756
  194.4216  0.0131269032  0.0147446552
  197.131729  0.0127723133  0.0147118857
  199.879639  0.0124251079  0.0146792
  202.665863  0.012082885  0.0146465907
  205.490906  0.0117458683  0.0146292504
  208.355347  0.011426189  0.0146348299
  211.259705  0.0111424504  0.0146523211
  214.204544  0.0108929407  0.0146697219
  217.190445  0.0106787682  0.0146872643
  220.217957  0.0105187884  0.0146906339
  223.287674  0.0103711914  0.0146632539
  226.400192  0.0102277258  0.0146221295
  229.556091  0.01009632  0.0145811671
  232.755981  0.00998856407  0.0145403221
  236.000458  0.00991522521  0.0144980745
  239.290176  0.00992475357  0.014407591
  242.625763  0.00988805108  0.0142353773
  246.007828  0.00982434954  0.0140533065
  249.437057  0.0097489357  0.0138735594
  252.914062  0.00967397541  0.0136961155
  256.439545  0.00960727129  0.0135124093
  260.01416  0.0095486315  0.0133019472
  263.638641  0.00946622342  0.0130741997
  267.313599  0.00936558191  0.0128503535
  271.039825  0.00925708748  0.0126303257
  274.817963  0.00914263539  0.01241404
  278.648773  0.00902173389  0.012203184
  282.53299  0.00889732782  0.0120003931
  286.471375  0.00877629407  0.0118067721
  290.4646  0.00865805987  0.0116163082
  294.513519  0.00854177214  0.0114289094
  298.618896  0.00842699315  0.011244501
  302.781494  0.00831291638  0.0110639231
  307.002106  0.00820109528  0.0108877206
  311.281525  0.00809275452  0.0107153151
  315.620605  0.00798774045  0.0105454894
  320.020203  0.00788552966  0.010378181
  324.48111  0.00778640993  0.0102133658
  329.004181  0.00769019779  0.010051474
  333.590363  0.00759720197  0.00989220757
  338.240417  0.00750744389  0.00973541662
  342.955322  0.00742091704  0.00958106387
  347.735901  0.00733779371  0.00942918658
  352.58316  0.00725840172  0.00927971303
  357.497986  0.00718357973  0.00913252868
  362.481323  0.00711358059  0.008987654
  367.534119  0.00704862177  0.00884513836
  372.657349  0.0069896928  0.00870494079
  377.85199  0.00693860278  0.00856703334
  383.119019  0.00689888885  0.00842959248
  388.459473  0.00687506748  0.00828780141
  393.87439  0.00686783157  0.00813489407
  399.364807  0.00686070509  0.00793969352
  404.931732  0.0068284492  0.00773192057
  410.576233  0.00677857688  0.00752570527
  416.299469  0.00671777409  0.00732497917
  422.102448  0.00664982013  0.00712956395
  427.986359  0.00657673273  0.00693938881
  433.95224  0.00649993448  0.00675437506
  440.001282  0.00642030966  0.00657432992
  446.134674  0.00634151278  0.00639829459
  452.353577  0.00626077456  0.00622363435
  458.659119  0.00617709104  0.00605042465
  465.052582  0.00608985173  0.00587974349
  471.535156  0.00599870132  0.00571280811
  478.108093  0.00590435183  0.00555080967
  484.772644  0.00580715248  0.00539321778
  491.530151  0.0057071764  0.00524007995
  498.381775  0.00560427411  0.00509138405
  505.328979  0.00549728656  0.00494693266
  512.372986  0.00538179372  0.00480886921
  519.515198  0.00525592826  0.00468284963
  526.756958  0.00512644043  0.00457806047
  534.09967  0.00500507979  0.00450928183
  541.544739  0.00491820136  0.00445807818
  549.093506  0.00486343773  0.00440874603
  556.74762  0.00483224262  0.00433405815
  564.508362  0.00480758771  0.00423403736
  572.377319  0.00477424404  0.00412001368
  580.355957  0.00472713867  0.00399831356
  588.445801  0.00467303488  0.00387806748
  596.648438  0.00461286865  0.00375997042
  604.965332  0.00454982044  0.00364536652
  613.398315  0.00448529003  0.0035343077
  621.948669  0.00442096405  0.00342652528
  630.618347  0.0043576248  0.00332041434
  639.408813  0.0042946809  0.00321363169
  648.321838  0.0042305463  0.0031052141
  657.35907  0.00415988546  0.0029966291
  666.522278  0.00408493448  0.00289184018
  675.813293  0.00400672806  0.00279300846
  685.233704  0.00392728578  0.00269998098
  694.785522  0.003847552  0.00261213211
  704.470398  0.00376776326  0.0025298493
  714.290344  0.00368907629  0.00245502661
  724.247192  0.00361636328  0.00238617766
  734.342834  0.0035480368  0.0023192591
  744.579163  0.00348327984  0.00225421577
  754.958191  0.00342246331  0.00219084276
  765.481934  0.0033664743  0.00212798058
  776.152344  0.00331513048  0.00206291792
  786.971436  0.00326562161  0.00199238607
  797.941406  0.00321043353  0.0019177699
  809.06427  0.00315176323  0.00184595014
  820.342224  0.00309186499  0.00177680235
  831.777283  0.00303146313  0.00171023468
  843.371826  0.00297096791  0.00164602627
  855.127991  0.00291061145  0.00158399029
  867.047974  0.00285049807  0.00152404688
  879.134155  0.00279056397  0.00146615505
  891.388855  0.00273093791  0.00141045474
  903.814331  0.00267198263  0.0013568619
  916.413025  0.00261395774  0.00130529481
  929.187317  0.00255673984  0.00125521666
  942.139648  0.00250016595  0.00120655086
  955.272583  0.00244416459  0.00115958764
  968.588562  0.00238872296  0.00111429638
  982.09021  0.00233397307  0.00107075728
  995.779968  0.00228013401  0.00102881482
  1009.66058  0.0022273662  0.000988414627
  1023.7348  0.00217539747  0.000949027366
  1038.005  0.00212404947  0.000910738308
  1052.47424  0.00207328121  0.000873868878
  1067.14514  0.00202310085  0.000838381588
  1082.02051  0.00197359663  0.000804324751
  1097.10339  0.00192485249  0.000771641731
  1112.39636  0.00187693385  0.000740272691
  1127.90259  0.00182985573  0.000710167224
  1143.62488  0.00178363232  0.000681280217
  1159.56641  0.0017382768  0.000653563591
  1175.73022  0.00169379974  0.000626965368
  1192.11926  0.00165018952  0.000601432228
  1208.73682  0.00160742877  0.000576933264
  1225.58594  0.00156557583  0.000553419464
  1242.66992  0.00152461894  0.000530784135
  1259.99194  0.00148452865  0.000508970639
  1277.55554  0.00144522975  0.000487934798
  1295.36401  0.00140664133  0.000467660051
  1313.42078  0.00136877189  0.000448212784
  1331.72913  0.0013316042  0.000429573585
  1350.29272  0.00129518937  0.000411704968
  1369.11511  0.00125952577  0.000394572853
  1388.19983  0.00122460513  0.000378147204
  1407.55054  0.00119041489  0.000362397288
  1427.17102  0.00115694175  0.000347294263
  1447.06506  0.00112417678  0.000332813885
  1467.23621  0.00109209481  0.000318920909
  1487.68884  0.00106068875  0.000305576948
  1508.42639  0.00102990458  0.000292695971
  1529.453  0.000999703887  0.000280317559
  1550.77271  0.000970071473  0.000268455362
  1572.38977  0.000941000297  0.000257091946
  1594.30786  0.000912480813  0.000246203737
  1616.53174  0.000884472684  0.000235771411
  1639.06531  0.000856925093  0.000225773212
  1661.91296  0.000829854514  0.000216198503
  1685.0791  0.00080323458  0.000207028395
  1708.56824  0.000777061156  0.000198245863
  1732.38477  0.000751294254  0.000189798346
  1756.53333  0.000725845224  0.000181625786
  1781.01831  0.000700629433  0.000173771303
  1805.84485  0.000675456016  0.000166223894
  1831.01721  0.000650359667  0.000159005998
  1856.54065  0.000625258021  0.000152102031
  1882.41992  0.000600033323  0.000145496699
  1908.65979  0.000574523234  0.00013917574
  1935.2655  0.000548508368  0.000133126799
  1962.24194  0.000521690818  0.0001273409
  1989.59473  0.000493111031  0.00012181035
  2017.32861  0.000461911317  0.000116563482
  2045.44897  0.000426016049  0.000111469635
  2073.96143  0.000379441015  0.000106560299
  2102.87134  0.000213349922  0.000101860758
  2132.18433  0.000229438476  0.000273591839
  2161.90576  0.000312269665  0.000261171255
  2192.0415  0.000282515597  0.000249320437
  2222.59741  0.00028894312  0.000351461786
  2253.57935  0.000369248271  0.000335111894
  2284.99292  0.000389911205  0.000319525047
  2316.84448  0.00040068783  0.000304663263
  2349.13989  0.000406113453  0.000290495285
  2381.8855  0.000408032793  0.00027699364
  2415.08789  0.000407373853  0.000264116767
  2448.75293  0.000404587103  0.00025184633
  2482.88721  0.000400260877  0.000240146459
  2517.49707  0.000394500443  0.000228993682
  2552.58984  0.0003871792  0.000218363726
  2588.17163  0.000377440243  0.000208230907
  2624.24927  0.000353581097  0.00019856896
  2660.82983  0.000356062694  0.000219088368
  2697.92041  0.000361693354  0.000208806145
  2735.52783  0.000360899314  0.00019901077
  2773.65967  0.000357523357  0.000189679573
  2812.323  0.000352859555  0.000180790827
  2851.52539  0.000347351393  0.000172322048
  2891.27393  0.000341193896  0.00016425256
  2931.57666  0.000334444485  0.000156567126
  2972.44141  0.000326824258  0.000149244574
  3013.87549  0.000313486264  0.000142264515
  3055.88745  0.000307921495  0.000143976358
  3098.48486  0.000308617833  0.000137309034
  3141.67603  0.000303304638  0.0001309527
  3185.46924  0.000297317049  0.000124894228
  3229.8728  0.000290793774  0.000119117532
  3274.89575  0.000283249043  0.000113615119
  3320.54614  0.000275798113  0.000113026537
  3366.83252  0.000273324404  0.000107848697
  3413.7644  0.000268219592  0.000102901889
  3461.35059  0.000262799062  9.81749617E-05
  3509.59961  0.00025726101  9.36576835E-05
  3558.52148  0.000251677673  8.93395336E-05
  3608.12549  0.000246089068  8.52182638E-05
  3658.4209  0.000240510126  8.12798826E-05
  3709.41724  0.000234975494  7.75189255E-05
  3761.12451  0.000229493919  7.39241805E-05
  3813.55249  0.000224074305  7.04926424E-05
  3866.71143  0.000218725123  6.72182505E-05
  3920.61133  0.000213453401  6.40918515E-05
  3975.26221  0.000208263344  6.11082578E-05
  4030.67554  0.000203151576  5.82563844E-05
  4086.86084  0.000198124384  5.55353399E-05
  4143.82959  0.000193188578  5.29400386E-05
  4201.59229  0.000188344959  5.04623022E-05
  4260.16016  0.000183593758  4.80978924E-05
  4319.54443  0.000178935792  4.58431969E-05
  4379.75635  0.000174372384  4.36914597E-05
  4440.80811  0.000169900683  4.16381699E-05
  4502.71045  0.000165521385  3.96791947E-05
  4565.47559  0.000161236225  3.78109871E-05
  4629.11572  0.000157044793  3.60290978E-05
  4693.64355  0.000152946217  3.43295287E-05
  4759.07031  0.000148939609  3.27088237E-05
  4825.40918  0.000145024023  3.11634976E-05
  4892.67285  0.000141198499  2.96898052E-05
  4960.87402  0.000137460229  2.82843921E-05
  5030.02588  0.000133809706  2.69445118E-05
  5100.14209  0.000130245986  2.56670992E-05
  5171.23486  0.000126767773  2.44495423E-05
  5243.31885  0.00012337364  2.32890216E-05
  5316.4082  0.000120062228  2.21826049E-05
  5390.51611  0.000116831863  2.11280712E-05
  5465.65723  0.00011368018  2.01230359E-05
  5541.84521  0.000110606721  1.91650161E-05
  5619.09521  0.000107610191  1.82521599E-05
  5697.42285  0.000104688901  1.73822627E-05
  5776.8418  0.000101841426  1.65533656E-05
  5857.36768  9.90664194E-05  1.57636932E-05
  5939.01611  9.63622442E-05  1.50111528E-05
  6021.80273  9.37267905E-05  1.42941153E-05
  6105.74316  9.11588213E-05  1.36111494E-05
  6190.85449  8.86572088E-05  1.29603086E-05
  6277.15186  8.62205634E-05  1.23403952E-05
  6364.65137  8.38473425E-05  1.17498821E-05
  6453.37158  8.15359599E-05  1.11872869E-05
  6543.32812  7.92850842E-05  1.06515236E-05
  6634.53809  7.7093151E-05  1.01409942E-05
  6727.02051  7.49583123E-05  9.65487379E-06
  6820.7915  7.28798695E-05  9.19190916E-06
  6915.86914  7.08563675E-05  8.75097339E-06
  7012.27295  6.88864675E-05  8.33100148E-06
  7110.02002  6.69688307E-05  7.93100662E-06
  7209.12988  6.51020309E-05  7.5500493E-06
  7309.62109  6.32848751E-05  7.18736919E-06
  7411.51318  6.15157041E-05  6.84181578E-06
  7514.82617  5.97935432E-05  6.5129384E-06
  7619.57861  5.81173445E-05  6.19965931E-06
  7725.79102  5.64858747E-05  5.90139416E-06
  7833.48438  5.48978969E-05  5.6173958E-06
  7942.67969  5.33522289E-05  5.34689161E-06
  8053.396  5.18477536E-05  5.08943458E-06
  8165.65625  5.03831179E-05  4.84430802E-06
  8279.48047  4.89572776E-05  4.61082254E-06
  8394.89258  4.75692141E-05  4.38855932E-06
  8511.91211  4.6217905E-05  4.17695856E-06
  8630.56348  4.49023391E-05  3.97553822E-06
  8750.86914  4.36215087E-05  3.7837799E-06
  8872.85156  4.23742786E-05  3.60108265E-06
  8996.53418  4.11592264E-05  3.42732642E-06
  9121.94141  3.99754535E-05  3.26181953E-06
  9249.0957  3.88220251E-05  3.1042614E-06
  9378.02344  3.76979515E-05  2.95426912E-06
  9508.74805  3.66021995E-05  2.81145776E-06
  9641.29492  3.55336379E-05  2.6755074E-06
  9775.68848  3.44914079E-05  2.5461261E-06
  9911.95703  3.34755496E-05  2.42291185E-06
  10050.125  3.24814282E-05  2.30097339E-06
  10190.2178  3.15049656E-05  2.18497462E-06
  10332.2637  3.05462963E-05  2.07472658E-06
  10476.29  2.96034614E-05  1.96995484E-06
  10622.3232  2.86731465E-05  1.870397E-06
  10770.3926  2.77507661E-05  1.77578931E-06
  10920.5264  2.68297954E-05  1.68589429E-06
  11072.7529  2.5887517E-05  1.60047239E-06
  11227.1006  2.48895431E-05  1.51929623E-06
  11383.6006  2.36962715E-05  1.44217211E-06
  11542.2822  1.88618706E-05  1.36894982E-06
  11703.1748  2.22495382E-05  3.40714837E-06
  11866.3105  2.22577819E-05  3.23335598E-06
  12031.7207  2.19265512E-05  3.06843299E-06
  12199.4365  2.14867341E-05  2.91195261E-06
  12369.4902  2.09970658E-05  2.76341598E-06
  12541.9141  2.04769076E-05  2.62247295E-06
  12716.7412  1.99295337E-05  2.48872175E-06
  12894.0059  1.93455944E-05  2.36180517E-06
  13073.7412  1.86515299E-05  2.24136443E-06
  13255.9824  1.69339455E-05  2.12704754E-06
  13440.7637  1.76551202E-05  2.82059978E-06
  13628.1211  1.74333618E-05  2.68533995E-06
  13818.0889  1.66071313E-05  2.55659074E-06
  14010.7061  1.66138307E-05  2.74021431E-06
  14206.0068  1.6412816E-05  2.61565651E-06
  14404.0312  1.60886102E-05  2.49632285E-06
  14604.8164  1.57449122E-05  2.38200937E-06
  14808.3994  1.53936689E-05  2.27257738E-06
  15014.8203  1.50389333E-05  2.16773719E-06
  15224.1182  1.46853708E-05  2.06741925E-06
  15436.335  1.43345187E-05  1.97145164E-06
  15651.5098  1.39874319E-05  1.87965816E-06
  15869.6816  1.36448962E-05  1.79187953E-06
  16090.8965  1.33074755E-05  1.70797455E-06
  16315.1953  1.29755808E-05  1.62778565E-06
  16542.6191  1.26492596E-05  1.55112298E-06
  16773.2148  1.2328961E-05  1.47787978E-06
  17007.0254  1.20149653E-05  1.40791951E-06
  17244.0938  1.17073423E-05  1.3411119E-06
  17484.4668  1.14061359E-05  1.27733415E-06
  17728.1914  1.11113704E-05  1.21645621E-06
  17975.3125  1.0823047E-05  1.15834393E-06
  18225.8789  1.05410681E-05  1.10289022E-06
  18479.9375  1.02654021E-05  1.04997059E-06
  18737.5371  9.99608892E-06  9.99488293E-07
  18998.7285  9.73306396E-06  9.51344077E-07
  19263.5605  9.47625085E-06  9.05433353E-07
  19532.084  9.2255641E-06  8.61661306E-07
  19804.3516  8.98091548E-06  8.19937611E-07
  20080.4141  8.74220223E-06  7.80159723E-07
  20360.3223  8.50927427E-06  7.4224198E-07
  20644.1348  8.28209613E-06  7.06106675E-07
  20931.9023  8.06057051E-06  6.71679288E-07
  21223.6816  7.84459644E-06  6.3888416E-07
  21519.5293  7.63405933E-06  6.07645404E-07
  21819.5  7.42885049E-06  5.77893843E-07
  22123.6523  7.22885943E-06  5.4955882E-07
  22432.0449  7.03394471E-06  5.2257252E-07
  22744.7324  6.84403722E-06  4.96877817E-07
  23061.7832  6.65902144E-06  4.72418208E-07
  23383.252  6.47880006E-06  4.49135115E-07
  23709.2012  6.30326667E-06  4.26973969E-07
  24039.6953  6.13231259E-06  4.05883299E-07
  24374.7949  5.96582868E-06  3.85812626E-07
  24714.5664  5.80369533E-06  3.66713351E-07
  25059.0742  5.64582024E-06  3.48541334E-07
  25408.3848  5.49211063E-06  3.31251556E-07
  25762.5645  5.34247192E-06  3.14804652E-07
  26121.6797  5.19680361E-06  2.99160604E-07
  26485.8008  5.05500702E-06  2.8428019E-07
  26855.  4.91698665E-06  2.70129846E-07
  27229.3438  4.78264565E-06  2.56672422E-07
  27608.9062  4.65189169E-06  2.4387478E-07
  27993.7598  4.52464428E-06  2.31705769E-07
  28383.9766  4.40081567E-06  2.20136485E-07
  28779.6348  4.28033081E-06  2.09137596E-07
  29180.8066  4.16324792E-06  1.98681505E-07
  29587.5723  4.04924049E-06  1.88742234E-07
  30000.0059  3.93639357E-06  1.79294744E-07
];
end

if(Material == 'TO')
    RefractiveData = [30.  0.0865434408  0.276653677
  30.4181843  0.0824442059  0.2712363
  30.8421955  0.0785297602  0.266003966
  31.2721214  0.0742357522  0.261031777
  31.7080383  0.0693601072  0.258166999
  32.150032  0.0658944249  0.256201386
  32.5981827  0.0631665066  0.25447914
  33.0525818  0.0609603189  0.252925873
  33.5133171  0.0591736846  0.251542628
  33.9804764  0.0577550493  0.250332445
  34.4541473  0.0566842742  0.249307945
  34.9344177  0.0560224392  0.248518467
  35.4213829  0.0559036396  0.247904912
  35.9151382  0.0563885942  0.247468978
  36.4157791  0.0575263426  0.246577412
  36.9233932  0.058932066  0.245423064
  37.4380875  0.0606312901  0.244124576
  37.9599533  0.0628428608  0.242383659
  38.4890938  0.0644924343  0.240163743
  39.0256119  0.0660156682  0.238108337
  39.5696068  0.0676969513  0.236214072
  40.1211853  0.0697260872  0.234476388
  40.6804543  0.072160773  0.232402757
  41.2475166  0.0746739656  0.229881644
  41.8224831  0.0769328251  0.227243394
  42.405468  0.0791972578  0.224718556
  42.9965744  0.0817241818  0.222303495
  43.5959282  0.0849222988  0.219806299
  44.2036324  0.0880849063  0.216329351
  44.8198051  0.0909611136  0.21256116
  45.4445686  0.0936609209  0.208891153
  46.0780411  0.0965141281  0.20518887
  46.7203445  0.0997359306  0.201113433
  47.3715973  0.102391735  0.19625248
  48.0319328  0.104701459  0.191516683
  48.7014732  0.106949851  0.186802462
  49.3803444  0.109140053  0.18201147
  50.0686798  0.111458071  0.177252054
  50.7666092  0.113913275  0.17210564
  51.4742699  0.116120264  0.165878236
  52.1917915  0.117414087  0.159649789
  52.9193192  0.118294023  0.153656006
  53.6569862  0.119157232  0.147886679
  54.4049339  0.119938791  0.141594812
  55.163311  0.120137416  0.135021403
  55.9322586  0.119613595  0.128579259
  56.7119217  0.118637756  0.12245325
  57.5024567  0.117334664  0.116627246
  58.3040123  0.115713947  0.111086234
  59.1167336  0.113916539  0.105951108
  59.9407921  0.112034649  0.101088248
  60.7763329  0.110083319  0.0964573175
  61.6235237  0.108064331  0.0920432135
  62.4825172  0.105983965  0.0878355131
  63.3534927  0.103852831  0.0838248059
  64.2366028  0.10167212  0.0800010264
  65.1320343  0.0994528532  0.0763556436
  66.0399323  0.0972075835  0.072880283
  66.960495  0.0949404761  0.0695666671
  67.8938904  0.0926534161  0.0664072335
  68.8402939  0.0903437361  0.0633945391
  69.7998886  0.0879986137  0.0605232045
  70.7728577  0.085571453  0.0577982701
  71.7593994  0.0831953734  0.0554501303
  72.7596817  0.0809241533  0.0532086007
  73.7739182  0.0787175372  0.0510689579
  74.8022842  0.0765686259  0.0490322448
  75.844986  0.0744737163  0.0470880419
  76.9022217  0.0724152848  0.0452211164
  77.9741974  0.0703715384  0.0434282906
  79.0611115  0.0682611242  0.0417068861
  80.1631851  0.06621667  0.0402776338
  81.2806168  0.0643046573  0.0389477685
  82.4136276  0.062500976  0.0376669057
  83.5624237  0.0607739314  0.0364287943
  84.7272415  0.0591085218  0.0352319665
  85.9082947  0.0574958101  0.0340750478
  87.1058121  0.0559279434  0.0329566412
  88.320015  0.0543931946  0.0318798311
  89.5511475  0.0529031269  0.0308555942
  90.7994385  0.0514577143  0.0298707597
  92.0651398  0.0500525534  0.0289180484
  93.3484802  0.0486822724  0.0279963575
  94.649704  0.0473423935  0.0271046776
  95.9690704  0.0460277647  0.026242042
  97.3068314  0.0447240807  0.0254074167
  98.6632385  0.0433930866  0.024644604
  100.038544  0.0421211049  0.0239559412
  101.433029  0.0409245715  0.0233129486
  102.846954  0.0397829413  0.0226916634
  104.280579  0.0386797749  0.0220912416
  105.734192  0.0376124419  0.0215108711
  107.208076  0.0365780741  0.0209497735
  108.702492  0.0355730988  0.0204072185
  110.217751  0.0345940627  0.0198825076
  111.754128  0.0336333513  0.0193749424
  113.311913  0.0326893553  0.0188977327
  114.891418  0.0317722373  0.0184648708
  116.492943  0.030903386  0.0180591568
  118.116798  0.0300746001  0.0176668745
  119.763275  0.0292789266  0.0172871947
  121.432716  0.0285147056  0.0169197656
  123.125427  0.0277817808  0.0165641401
  124.841721  0.0270843916  0.0162155218
  126.581955  0.026418386  0.0158649404
  128.346436  0.0257623326  0.0155048249
  130.135513  0.0251181144  0.0151555818
  131.949539  0.0244891886  0.0148169119
  133.788834  0.0238756537  0.0144884503
  135.653778  0.0232793037  0.0141721116
  137.544724  0.0227016099  0.0138665093
  139.462021  0.022144407  0.0135693094
  141.406052  0.0216082409  0.0132777439
  143.377167  0.0210833978  0.0129807685
  145.375778  0.0205642655  0.0126921944
  147.402222  0.0200556479  0.0124175604
  149.45694  0.0195623823  0.0121540418
  151.540268  0.0190847497  0.0118989088
  153.652664  0.0186215546  0.0116507411
  155.794495  0.0181720797  0.011409305
  157.966202  0.0177359562  0.0111743137
  160.168167  0.0173137039  0.0109457038
  162.400818  0.0169058517  0.0107231112
  164.664597  0.0165153015  0.0104998937
  166.95993  0.0161313172  0.0102740489
  169.287262  0.0157455262  0.0100521883
  171.647034  0.0153598292  0.00984337553
  174.039703  0.0149867302  0.00964908395
  176.465729  0.0146315433  0.00947222393
  178.925552  0.0142951105  0.00930022076
  181.419678  0.0139783043  0.00912898034
  183.948563  0.0136721022  0.00895480532
  186.512726  0.0133735798  0.00878123287
  189.112595  0.0130859036  0.00861204695
  191.748734  0.0128122689  0.0084442487
  194.4216  0.0125440098  0.00826805737
  197.131729  0.0122810649  0.00809276942
  199.879639  0.0120205963  0.00791937951
  202.665863  0.0117643476  0.00775008276
  205.490906  0.0115139112  0.00758555066
  208.355347  0.011271215  0.00742566446
  211.259705  0.0110375164  0.00726854196
  214.204544  0.0108092008  0.00710568158
  217.190445  0.0105834482  0.00694500934
  220.217957  0.0103593981  0.00678724935
  223.287674  0.0101384092  0.0066334079
  226.400192  0.00992118567  0.00648374436
  229.556091  0.00970808882  0.00633816747
  232.755981  0.00949934125  0.00619652169
  236.000458  0.00929505844  0.00605874555
  239.290176  0.00909410976  0.00592514221
  242.625763  0.00889897905  0.00579681434
  246.007828  0.00870987028  0.00567184435
  249.437057  0.00852625817  0.0055499319
  252.914062  0.0083478922  0.00543103041
  256.439545  0.00817484688  0.00531504257
  260.01416  0.00800724979  0.00520185847
  263.638641  0.00784557126  0.00509132072
  267.313599  0.00769030396  0.00498336414
  271.039825  0.00754283974  0.00487798126
  274.817963  0.00740708783  0.00476916414
  278.648773  0.00727642002  0.004653743
  282.53299  0.00714317476  0.00453248853
  286.471375  0.00700640306  0.00440907804
  290.4646  0.00686748326  0.00428828597
  294.513519  0.00672746636  0.00417091371
  298.618896  0.00658816425  0.00405689841
  302.781494  0.00645002769  0.00394612178
  307.002106  0.00631332211  0.00383846136
  311.281525  0.00617822912  0.00373382308
  315.620605  0.00604489213  0.00363213266
  320.020203  0.00591343222  0.00353328581
  324.48111  0.00578374462  0.00343719567
  329.004181  0.00565603236  0.00334385037
  333.590363  0.00553035224  0.00325312163
  338.240417  0.00540669868  0.00316490768
  342.955322  0.0052850307  0.00307914498
  347.735901  0.00516532082  0.00299578789
  352.58316  0.00504755648  0.00291476795
  357.497986  0.00493167015  0.00283604651
  362.481323  0.00481757289  0.00275947712
  367.534119  0.00470523024  0.00268500973
  372.657349  0.0045944415  0.00261257472
  377.85199  0.00448499108  0.00254217302
  383.119019  0.00437660702  0.00247385306
  388.459473  0.00426862668  0.00240768446
  393.87439  0.00415825797  0.00234384346
  399.364807  0.00404940592  0.00229114713
  404.931732  0.00394769618  0.00224334141
  410.576233  0.00385183212  0.00219750637
  416.299469  0.00376056437  0.00215266482
  422.102448  0.00367316511  0.00210874272
  427.986359  0.00358929788  0.00206577801
  433.95224  0.00350895687  0.00202379562
  440.001282  0.00343252369  0.00198271195
  446.134674  0.00336424517  0.00194105587
  452.353577  0.00329807634  0.0018942419
  458.659119  0.0032313515  0.00184275664
  465.052582  0.00316248159  0.0017887596
  471.535156  0.0030904226  0.00173441274
  478.108093  0.00301561062  0.0016817681
  484.772644  0.0029388133  0.00163071498
  491.530151  0.00286021293  0.00158120703
  498.381775  0.00277941488  0.00153318618
  505.328979  0.00269552111  0.00148663844
  512.372986  0.00260701845  0.00144143833
  519.515198  0.00251078117  0.00139729597
  526.756958  0.00240003946  0.00135377911
  534.09967  0.00225128233  0.00131022406
  541.544739  0.00156680262  0.00126740756
  549.093506  0.00196761102  0.00175207469
  556.74762  0.0021908253  0.00169922481
  564.508362  0.00222778041  0.00165881612
  572.377319  0.00224752654  0.00161799393
  580.355957  0.00225577969  0.00156450237
  588.445801  0.00225250516  0.00150821183
  596.648438  0.00223775255  0.00145082152
  604.965332  0.00221668254  0.0013955395
  613.398315  0.00219129398  0.00134239206
  621.948669  0.00216293032  0.00129126885
  630.618347  0.00213247491  0.00124185218
  639.408813  0.0021004146  0.00119371607
  648.321838  0.00206679595  0.00114664692
  657.35907  0.00203085784  0.00110084703
  666.522278  0.00199330109  0.00105690525
  675.813293  0.0019545604  0.0010158834
  685.233704  0.00191586232  0.000977610121
  694.785522  0.00187822117  0.00094140193
  704.470398  0.00184187049  0.000906301721
  714.290344  0.00180608919  0.000871249009
  724.247192  0.00176947936  0.000836594729
  734.342834  0.00173259422  0.000803342729
  744.579163  0.00169579487  0.000771423685
  754.958191  0.00165923149  0.000740781194
  765.481934  0.00162303541  0.000711324683
  776.152344  0.00158727658  0.000682918297
  786.971436  0.00155191077  0.000655419426
  797.941406  0.00151671458  0.000628834299
  809.06427  0.00148179929  0.000603334396
  820.342224  0.00144730229  0.000578880601
  831.777283  0.00141328585  0.000555432402
  843.371826  0.00137976941  0.000532946724
  855.127991  0.00134677533  0.000511382124
  867.047974  0.00131434319  0.000490698847
  879.134155  0.00128248613  0.00047085894
  891.388855  0.00125119276  0.000451824599
  903.814331  0.00122052745  0.00043356535
  916.413025  0.00119056483  0.000416049443
  929.187317  0.00116123399  0.000399021083
  942.139648  0.00113242376  0.000382450788
  955.272583  0.00110405264  0.00036648786
  968.588562  0.00107610447  0.000351124763
  982.09021  0.00104861299  0.000336409459
  995.779968  0.00102164235  0.00032230292
  1009.66058  0.00099523156  0.000308781484
  1023.7348  0.000969351619  0.000295759208
  1038.005  0.00094398082  0.00028321307
  1052.47424  0.000919095299  0.000271150755
  1067.14514  0.000894656056  0.000259556778
  1082.02051  0.000870666467  0.00024845876
  1097.10339  0.000847140327  0.000237836895
  1112.39636  0.000824096205  0.000227670273
  1127.90259  0.00080153218  0.000217939989
  1143.62488  0.000779444352  0.000208627695
  1159.56641  0.0007578269  0.000199714719
  1175.73022  0.000736673188  0.000191182713
  1192.11926  0.000715971226  0.000183012671
  1208.73682  0.000695697672  0.000175194829
  1225.58594  0.000675880234  0.000167713049
  1242.66992  0.000656505406  0.000160516458
  1259.99194  0.000637549558  0.000153584988
  1277.55554  0.000618970313  0.00014690496
  1295.36401  0.000600725121  0.000140472373
  1313.42078  0.000582812703  0.000134320129
  1331.72913  0.00056520052  0.000128438289
  1350.29272  0.000547909003  0.000122815167
  1369.11511  0.000530927849  0.000117437754
  1388.19983  0.000514241226  0.000112296373
  1407.55054  0.00049783173  0.000107381107
  1427.17102  0.000481678726  0.000102680824
  1447.06506  0.000465757592  9.81836638E-05
  1467.23621  0.000450001069  9.38804587E-05
  1487.68884  0.000434376852  8.9760455E-05
  1508.42639  0.000418849231  8.57979394E-05
  1529.453  0.000403352838  8.20007845E-05
  1550.77271  0.000387814187  7.83708892E-05
  1572.38977  0.00037214029  7.49022511E-05
  1594.30786  0.000356204691  7.15868009E-05
  1616.53174  0.000339734368  6.84182523E-05
  1639.06531  0.000322197826  6.53898824E-05
  1661.91296  0.000303039938  6.24962631E-05
  1685.0791  0.000280723965  5.97306571E-05
  1708.56824  0.000249451317  5.70865632E-05
  1732.38477  0.000152887282  5.45579496E-05
  1756.53333  0.000199877817  0.00012695152
  1781.01831  0.000199161208  0.000150199601
  1805.84485  0.000219022724  0.000178196089
  1831.01721  0.000241659829  0.000181858122
  1856.54065  0.000255416468  0.000175494119
  1882.41992  0.000261885114  0.000167284175
  1908.65979  0.000264666305  0.000159457064
  1935.2655  0.000265246083  0.00015199442
  1962.24194  0.00026431735  0.000144881138
  1989.59473  0.000262160494  0.000138099902
  2017.32861  0.000259165652  0.000131659704
  2045.44897  0.000255497289  0.000125503488
  2073.96143  0.000251208461  0.000119628057
  2102.87134  0.000246278796  0.000114026778
  2132.18433  0.00024051925  0.000108686916
  2161.90576  0.000231761791  0.000103598788
  2192.0415  0.000202246636  9.87491585E-05
  2222.59741  0.00022199114  0.00010917383
  2253.57935  0.000224590345  0.000103905753
  2284.99292  0.000222213799  9.88910397E-05
  2316.84448  0.000218919129  9.41181643E-05
  2349.13989  0.000215087857  8.95771518E-05
  2381.8855  0.000210852173  8.52564408E-05
  2415.08789  0.000206196652  8.11420032E-05
  2448.75293  0.000200354232  7.72273852E-05
  2482.88721  0.000193058135  7.83460418E-05
  2517.49707  0.000193657557  7.4608557E-05
  2552.58984  0.000190320381  7.10485692E-05
  2588.17163  0.000186527468  6.76579657E-05
  2624.24927  0.000182493925  6.44301253E-05
  2660.82983  0.000178232018  6.13581724E-05
  2697.92041  0.000172801636  5.84317422E-05
  2735.52783  0.000169087463  5.79297812E-05
  2773.65967  0.000166736878  5.53034297E-05
  2812.323  0.000163254939  5.27926495E-05
  2851.52539  0.00015969036  5.03900701E-05
  2891.27393  0.000156110182  4.80909512E-05
  2931.57666  0.000152541397  4.58924042E-05
  2972.44141  0.000148995285  4.37901581E-05
  3013.87549  0.000145483689  4.17790907E-05
  3055.88745  0.00014201671  3.98576049E-05
  3098.48486  0.000138598742  3.80210804E-05
  3141.67603  0.000135232913  3.62660394E-05
  3185.46924  0.000131921493  3.45893714E-05
  3229.8728  0.000128666521  3.29875438E-05
  3274.89575  0.000125468287  3.14577192E-05
  3320.54614  0.000122326863  2.99961466E-05
  3366.83252  0.000119246164  2.86014438E-05
  3413.7644  0.000116226533  2.72695052E-05
  3461.35059  0.000113268012  2.59977787E-05
  3509.59961  0.000110370696  2.47841326E-05
  3558.52148  0.000107534754  2.36259039E-05
  3608.12549  0.000104759638  2.25201584E-05
  3658.4209  0.000102042912  2.14647971E-05
  3709.41724  9.93868671E-05  2.04582302E-05
  3761.12451  9.67904271E-05  1.949748E-05
  3813.55249  9.42530751E-05  1.85811714E-05
  3866.71143  9.17743819E-05  1.77074089E-05
  3920.61133  8.93536708E-05  1.68737588E-05
  3975.26221  8.69898868E-05  1.60786931E-05
  4030.67554  8.46813564E-05  1.53202964E-05
  4086.86084  8.24279559E-05  1.45971235E-05
  4143.82959  8.02291033E-05  1.39075137E-05
  4201.59229  7.808386E-05  1.32499827E-05
  4260.16016  7.599128E-05  1.2623088E-05
  4319.54443  7.39504394E-05  1.20254354E-05
  4379.75635  7.19602831E-05  1.14556778E-05
  4440.80811  7.00195524E-05  1.09123921E-05
  4502.71045  6.81272213E-05  1.03945558E-05
  4565.47559  6.62828388E-05  9.90109402E-06
  4629.11572  6.44853499E-05  9.43070427E-06
  4693.64355  6.27336849E-05  8.9823352E-06
  4759.07031  6.10268871E-05  8.55506096E-06
  4825.40918  5.93639816E-05  8.14787836E-06
  4892.67285  5.77439496E-05  7.75978697E-06
  4960.87402  5.61656088E-05  7.38998597E-06
  5030.02588  5.46283009E-05  7.03757223E-06
  5100.14209  5.31310652E-05  6.70181043E-06
  5171.23486  5.16730506E-05  6.3818984E-06
  5243.31885  5.02532966E-05  6.07711536E-06
  5316.4082  4.88708429E-05  5.78678146E-06
  5390.51611  4.75248671E-05  5.51008452E-06
  5465.65723  4.62142125E-05  5.24657617E-06
  5541.84521  4.49383369E-05  4.99554699E-06
  5619.09521  4.36962873E-05  4.75634261E-06
  5697.42285  4.24872233E-05  4.528516E-06
  5776.8418  4.13103517E-05  4.3115474E-06
  5857.36768  4.01648831E-05  4.10489019E-06
  5939.01611  3.90500245E-05  3.90804598E-06
  6021.80273  3.79648336E-05  3.72055547E-06
  6105.74316  3.69086119E-05  3.54196186E-06
  6190.85449  3.58806719E-05  3.37191182E-06
  6277.15186  3.48803223E-05  3.20999516E-06
  6364.65137  3.39068356E-05  3.05579852E-06
  6453.37158  3.29594659E-05  2.90893308E-06
  6543.32812  3.20375366E-05  2.76907485E-06
  6634.53809  3.11402728E-05  2.6359105E-06
  6727.02051  3.02670051E-05  2.5091083E-06
  6820.7915  2.94171368E-05  2.38832308E-06
  6915.86914  2.85900333E-05  2.27336432E-06
  7012.27295  2.77850868E-05  2.16392664E-06
  7110.02002  2.70016935E-05  2.05970491E-06
  7209.12988  2.62392077E-05  1.9604563E-06
  7309.62109  2.54970237E-05  1.86600664E-06
  7411.51318  2.47743665E-05  1.77606341E-06
  7514.82617  2.40707905E-05  1.69041118E-06
  7619.57861  2.33857591E-05  1.60890022E-06
  7725.79102  2.27186938E-05  1.5312994E-06
  7833.48438  2.20689944E-05  1.45740501E-06
  7942.67969  2.14360862E-05  1.38706332E-06
  8053.396  2.08194033E-05  1.32011519E-06
  8165.65625  2.02180381E-05  1.25639633E-06
  8279.48047  1.96314868E-05  1.19572951E-06
  8394.89258  1.90592054E-05  1.1379849E-06
  8511.91211  1.85004446E-05  1.08297763E-06
  8630.56348  1.79544168E-05  1.03061814E-06
  8750.86914  1.74202778E-05  9.80815798E-07
  8872.85156  1.68970419E-05  9.3338997E-07
  8996.53418  1.63827717E-05  8.88245324E-07
  9121.94141  1.58749881E-05  8.45282159E-07
  9249.0957  1.53714209E-05  8.04392073E-07
  9378.02344  1.48671415E-05  7.65461209E-07
  9508.74805  1.43524439E-05  7.28404075E-07
  9641.29492  1.38021187E-05  6.93139839E-07
  9775.68848  1.28862457E-05  6.59577154E-07
  9911.95703  1.227746E-05  1.63393167E-06
  10050.125  1.25906417E-05  1.54928398E-06
  10190.2178  1.24531498E-05  1.46902801E-06
  10332.2637  1.22139563E-05  1.3929249E-06
  10476.29  1.1937962E-05  1.32076559E-06
  10622.3232  1.16403926E-05  1.25234942E-06
  10770.3926  1.13243805E-05  1.18747494E-06
  10920.5264  1.09834782E-05  1.12596342E-06
  11072.7529  1.05236222E-05  1.0676431E-06
  11227.1006  1.00735642E-05  1.4210741E-06
  11383.6006  1.01864471E-05  1.34668278E-06
  11542.2822  9.95127812E-06  1.27619012E-06
  11703.1748  9.46266027E-06  1.36052643E-06
  11866.3105  9.54846382E-06  1.29796877E-06
  12031.7207  9.35914704E-06  1.23826976E-06
  12199.4365  9.15450437E-06  1.18113246E-06
  12369.4902  8.94566256E-06  1.12643602E-06
  12541.9141  8.73616864E-06  1.07412745E-06
  12716.7412  8.52755875E-06  1.02411013E-06
  12894.0059  8.32079604E-06  9.76295041E-07
  13073.7412  8.11653263E-06  9.3058884E-07
  13255.9824  7.91521234E-06  8.86897567E-07
  13440.7637  7.71705163E-06  8.45163299E-07
  13628.1211  7.52223923E-06  8.05276045E-07
  13818.0889  7.33110392E-06  7.67189931E-07
  14010.7061  7.14374892E-06  7.30820432E-07
  14206.0068  6.96023108E-06  6.96099619E-07
  14404.0312  6.78058041E-06  6.62959621E-07
  14604.8164  6.60481146E-06  6.31329385E-07
  14808.3994  6.43291969E-06  6.01156103E-07
  15014.8203  6.26480278E-06  5.72353599E-07
  15224.1182  6.10055031E-06  5.44879981E-07
  15436.335  5.94012272E-06  5.18677837E-07
  15651.5098  5.78348045E-06  4.93692085E-07
  15869.6816  5.63057665E-06  4.69869519E-07
  16090.8965  5.48134994E-06  4.47161085E-07
  16315.1953  5.33574394E-06  4.25516532E-07
  16542.6191  5.19367768E-06  4.0488095E-07
  16773.2148  5.05510707E-06  3.85216765E-07
  17007.0254  4.91998662E-06  3.66478901E-07
  17244.0938  4.78825359E-06  3.4862714E-07
  17484.4668  4.65984203E-06  3.31623767E-07
  17728.1914  4.53468419E-06  3.15428792E-07
  17975.3125  4.4127105E-06  3.00002398E-07
  18225.8789  4.29385E-06  2.85312694E-07
  18479.9375  4.17802448E-06  2.71323216E-07
  18737.5371  4.06519257E-06  2.58003411E-07
  18998.7285  3.95528605E-06  2.45323804E-07
  19263.5605  3.84823761E-06  2.33253942E-07
  19532.084  3.74398337E-06  2.21766143E-07
  19804.3516  3.6424542E-06  2.10833974E-07
  20080.4141  3.54358849E-06  2.00428588E-07
  20360.3223  3.44731393E-06  1.90526052E-07
  20644.1348  3.35358095E-06  1.81103061E-07
  20931.9023  3.26232816E-06  1.72138371E-07
  21223.6816  3.17349532E-06  1.63610579E-07
  21519.5293  3.08702215E-06  1.55498469E-07
  21819.5  3.00285319E-06  1.47782671E-07
  22123.6523  2.92093182E-06  1.40443461E-07
  22432.0449  2.84119142E-06  1.33462336E-07
  22744.7324  2.76358492E-06  1.26823707E-07
  23061.7832  2.68806048E-06  1.20511046E-07
  23383.252  2.61456626E-06  1.14508474E-07
  23709.2012  2.54304882E-06  1.0880121E-07
  24039.6953  2.47345793E-06  1.03375086E-07
  24374.7949  2.40574354E-06  9.82164394E-08
  24714.5664  2.33985634E-06  9.33124724E-08
  25059.0742  2.27574765E-06  8.86507792E-08
  25408.3848  2.21337586E-06  8.42192449E-08
  25762.5645  2.15269415E-06  8.00072542E-08
  26121.6797  2.09365749E-06  7.60040919E-08
  26485.8008  2.03622358E-06  7.21993274E-08
  26855.  1.98035127E-06  6.85839723E-08
  27229.3438  1.92599646E-06  6.51480789E-08
  27608.9062  1.87311991E-06  6.18828935E-08
  27993.7598  1.82168412E-06  5.87803086E-08
  28383.9766  1.77165236E-06  5.58323912E-08
  28779.6348  1.72298849E-06  5.3031517E-08
  29180.8066  1.67569203E-06  5.03703887E-08
  29587.5723  1.62966626E-06  4.78420894E-08
  30000.0059  1.58441151E-06  4.54402809E-08
];
end

if(Material == 'FG') % density 7.85 g/cm^3
RefractiveData =[30.  0.0806601197  0.298815846
  30.4181843  0.0877696872  0.3005566
  30.8421955  0.094892852  0.302216679
  31.2721214  0.102497853  0.303976476
  31.7080383  0.111183204  0.305835932
  32.150032  0.122151069  0.307482302
  32.5981827  0.135584027  0.30680421
  33.0525818  0.150410458  0.303779542
  33.5133171  0.165612876  0.295860201
  33.9804764  0.180127084  0.285946041
  34.4541473  0.191719398  0.269821376
  34.9344177  0.197924688  0.254065007
  35.4213829  0.202174693  0.239259422
  35.9151382  0.20499213  0.224710837
  36.4157791  0.205956489  0.21064344
  36.9233932  0.206103712  0.19747889
  37.4380875  0.206147105  0.184003189
  37.9599533  0.204017013  0.169855416
  38.4890938  0.199456632  0.156650916
  39.0256119  0.193931654  0.146318644
  39.5696068  0.188760579  0.136845529
  40.1211853  0.183529422  0.128021777
  40.6804543  0.178077325  0.119817637
  41.2475166  0.172508121  0.112401873
  41.8224831  0.167024061  0.105473191
  42.405468  0.161485732  0.0989932865
  42.9965744  0.155891418  0.0929187313
  43.5959282  0.150216177  0.0872252285
  44.2036324  0.144441038  0.0819000006
  44.8198051  0.138523206  0.0769188926
  45.4445686  0.132203981  0.0722589567
  46.0780411  0.125407875  0.068676956
  46.7203445  0.119345494  0.0661249459
  47.3715973  0.113885194  0.0637649223
  48.0319328  0.108680502  0.0614890978
  48.7014732  0.103609174  0.0592653863
  49.3803444  0.0985359475  0.0570808351
  50.0686798  0.0933414847  0.0549614169
  50.7666092  0.0878789872  0.0529068708
  51.4742699  0.081907697  0.0509734415
  52.1917915  0.0750556588  0.049421791
  52.9193192  0.0652664602  0.0481988825
  53.6569862  0.0518560298  0.0543540791
  54.4049339  0.0497012027  0.0681559443
  55.163311  0.0551207624  0.079089798
  55.9322586  0.0612723045  0.0793902874
  56.7119217  0.0654521585  0.0788295716
  57.5024567  0.0679162666  0.0774536952
  58.3040123  0.0702848881  0.075959973
  59.1167336  0.0719867349  0.072978355
  59.9407921  0.0729081929  0.0698929057
  60.7763329  0.0733164474  0.066752851
  61.6235237  0.0732506439  0.0635216758
  62.4825172  0.0726205558  0.0603120327
  63.3534927  0.0715888366  0.0572749116
  64.2366028  0.0702058971  0.0544004478
  65.1320343  0.0685380623  0.0518099405
  66.0399323  0.0667890236  0.0494889989
  66.960495  0.0648620427  0.0473171175
  67.8938904  0.0628685281  0.0455164462
  68.8402939  0.06099521  0.0440999866
  69.7998886  0.059296798  0.0427310877
  70.7728577  0.0576732308  0.0414081328
  71.7593994  0.0560797304  0.0401293971
  72.7596817  0.0544865355  0.0389044061
  73.7739182  0.0528974831  0.0377692468
  74.8022842  0.0512978099  0.0367381647
  75.844986  0.049734056  0.0358434021
  76.9022217  0.0483165346  0.0350862779
  77.9741974  0.047006797  0.0343458541
  79.0611115  0.045778472  0.0336217955
  80.1631851  0.0446150191  0.0329136811
  81.2806168  0.0435358733  0.032210324
  82.4136276  0.0424934849  0.0314709693
  83.5624237  0.0414566323  0.0307319239
  84.7272415  0.0404383317  0.0300103463
  85.9082947  0.0394427627  0.0293058194
  87.1058121  0.0384716913  0.0286179334
  88.320015  0.037526384  0.027947031
  89.5511475  0.0366210826  0.0272955932
  90.7994385  0.035741698  0.026619114
  92.0651398  0.0348553248  0.0259472616
  93.3484802  0.0339741893  0.0252923742
  94.649704  0.0331032686  0.0246540457
  95.9690704  0.0322436988  0.0240318533
  97.3068314  0.0313955024  0.0234253779
  98.6632385  0.0305567142  0.0228342302
  100.038544  0.0297276638  0.0222580284
  101.433029  0.0289056934  0.0216978695
  102.846954  0.0280932989  0.0211617816
  104.280579  0.0273013152  0.0206431933
  105.734192  0.0265248492  0.0201373529
  107.208076  0.0257649776  0.0196399353
  108.702492  0.0250259992  0.0191471502
  110.217751  0.024296267  0.0186376441
  111.754128  0.023548577  0.0181319881
  113.311913  0.0227984637  0.0176401641
  114.891418  0.0220616665  0.0171483625
  116.492943  0.0213084538  0.016637465
  118.116798  0.0205269475  0.0161328912
  119.763275  0.0197295975  0.0156441834
  121.432716  0.0189364627  0.0151428273
  123.125427  0.0180861317  0.0145736691
  124.841721  0.0171472114  0.0140190311
  126.581955  0.0161400866  0.0134688253
  128.346436  0.0150083341  0.0128967464
  130.135513  0.0137345064  0.0123472195
  131.949539  0.0123039307  0.0117542073
  133.788834  0.0105095506  0.0111276377
  135.653778  0.00822997652  0.0106024975
  137.544724  0.00487074768  0.0104653155
  139.462021  0.00121145102  0.0116901239
  141.406052 -0.00234900834  0.0134863481
  143.377167 -0.00826353021  0.01568003
  145.375778 -0.0180036984  0.0260912161
  147.402222 -0.0110495239  0.0504632443
  149.45694  0.0130454646  0.0568059832
  151.540268  0.0270636212  0.0429373309
  153.652664  0.029385481  0.0322579816
  155.794495  0.0276426729  0.0255692676
  157.966202  0.0257046111  0.0225684177
  160.168167  0.0244133454  0.0203202367
  162.400818  0.02333216  0.0187491588
  164.664597  0.0224578734  0.0174192041
  166.95993  0.0216873027  0.0163267925
  169.287262  0.0210461617  0.0153422859
  171.647034  0.0204342455  0.0144353928
  174.039703  0.0198357608  0.013596382
  176.465729  0.0192136131  0.0128104081
  178.925552  0.0185224731  0.0121095935
  181.419678  0.0178841054  0.0116623435
  183.948563  0.0173718054  0.0112405997
  186.512726  0.0169154983  0.0108343065
  189.112595  0.0164994281  0.0104418639
  191.748734  0.0161165744  0.0100590456
  194.4216  0.0157492291  0.00967319682
  197.131729  0.015392947  0.00930215418
  199.879639  0.0150544113  0.00894530863
  202.665863  0.0147310002  0.00857989676
  205.490906  0.0143997725  0.00821415801
  208.355347  0.014060732  0.00786320772
  211.259705  0.0137215564  0.00752731739
  214.204544  0.0133829908  0.00720591145
  217.190445  0.0130448416  0.0068982807
  220.217957  0.0127057955  0.00660399254
  223.287674  0.0123568932  0.00632909965
  226.400192  0.012019841  0.00608649058
  229.556091  0.0116997613  0.00585749466
  232.755981  0.0113897473  0.00563715305
  236.000458  0.0110879168  0.00542515377
  239.290176  0.0107923625  0.00522120064
  242.625763  0.0105020469  0.00502495561
  246.007828  0.0102157649  0.00483615277
  249.437057  0.0099318251  0.00465446664
  252.914062  0.00964428764  0.00447997404
  256.439545  0.00933948252  0.00433031563
  260.01416  0.00906079169  0.00422148732
  263.638641  0.00881162379  0.00411553634
  267.313599  0.00857691467  0.00401237234
  271.039825  0.00835562777  0.00391193712
  274.817963  0.00814773235  0.00381294871
  278.648773  0.00794941559  0.00371317542
  282.53299  0.00775683671  0.00361291994
  286.471375  0.00757021969  0.003515661
  290.4646  0.00739264814  0.00342128333
  294.513519  0.00722734956  0.00332468399
  298.618896  0.00706303492  0.00322006526
  302.781494  0.00689638359  0.00311651733
  307.002106  0.00673065335  0.00301637105
  311.281525  0.00656672893  0.00291951769
  315.620605  0.00640478032  0.00282585062
  320.020203  0.00624291971  0.00273611094
  324.48111  0.00608369801  0.00265603582
  329.004181  0.00593413133  0.00258033071
  333.590363  0.00579206878  0.00250691734
  338.240417  0.00565646915  0.00243232562
  342.955322  0.0055231913  0.00235471665
  347.735901  0.00539000053  0.00227847788
  352.58316  0.00525833247  0.00220485707
  357.497986  0.00512881158  0.00213375362
  362.481323  0.00500169862  0.00206509675
  367.534119  0.00487710722  0.00199878379
  372.657349  0.00475505786  0.0019347308
  377.85199  0.00463530421  0.00187285396
  383.119019  0.00451782532  0.00181352254
  388.459473  0.00440334389  0.0017574809
  393.87439  0.00429328904  0.00170358154
  399.364807  0.00418678019  0.00164943619
  404.931732  0.004081327  0.00159613811
  410.576233  0.00397775322  0.00154444959
  416.299469  0.0038761429  0.00149449718
  422.102448  0.00377657264  0.00144622126
  427.986359  0.00367902452  0.00139956234
  433.95224  0.00358343986  0.00135447178
  440.001282  0.00348966592  0.00131088786
  446.134674  0.00339742214  0.00126876321
  452.353577  0.00330654182  0.00122925895
  458.659119  0.00321855512  0.00119241141
  465.052582  0.00313371466  0.00115680578
  471.535156  0.00305133057  0.00112232752
  478.108093  0.00297134463  0.00108893588
  484.772644  0.00289370865  0.00105659082
  491.530151  0.00281896652  0.00102513027
  498.381775  0.00274730916  0.000992892426
  505.328979  0.00267591001  0.000959593104
  512.372986  0.00260470342  0.000927434769
  519.515198  0.00253456365  0.000896383252
  526.756958  0.00246553868  0.000866393792
  534.09967  0.00239767856  0.000837431871
  541.544739  0.00233098865  0.000809462392
  549.093506  0.00226550945  0.000782446528
  556.74762  0.00220124028  0.00075635087
  564.508362  0.00213831686  0.000731149223
  572.377319  0.00207699439  0.000706258987
  580.355957  0.00201604236  0.000681342499
  588.445801  0.00195526145  0.000657230732
  596.648438  0.00189470965  0.000634152209
  604.965332  0.00183467346  0.000611999363
  613.398315  0.00177507149  0.000590649608
  621.948669  0.00171577325  0.000570046366
  630.618347  0.00165650854  0.000549974444
  639.408813  0.00159685628  0.00053029781
  648.321838  0.00153608492  0.000510758371
  657.35907  0.00147207652  0.00049160351
  666.522278  0.00140372233  0.000473177963
  675.813293  0.00132811256  0.000455762754
  685.233704  0.0012386936  0.000439799827
  694.785522  0.00110740156  0.000424522703
  704.470398  0.000690349028  0.000409806729
  714.290344  0.00101875444  0.000838662148
  724.247192  0.00111562829  0.000803652161
  734.342834  0.00115282822  0.000770128157
  744.579163  0.00116658991  0.000738022209
  754.958191  0.00116774172  0.000707278959
  765.481934  0.00116096612  0.00067781168
  776.152344  0.00114860304  0.000649596041
  786.971436  0.00113165192  0.000622530584
  797.941406  0.00110906386  0.00059693621
  809.06427  0.00108663109  0.000579284213
  820.342224  0.00106556306  0.000562585541
  831.777283  0.00104561006  0.000546393625
  843.371826  0.00102689862  0.000530680059
  855.127991  0.00100967451  0.000514231564
  867.047974  0.000993336784  0.000495174085
  879.134155  0.000974764349  0.000474062545
  891.388855  0.0009533845  0.000453862973
  903.814331  0.000931143702  0.00043452988
  916.413025  0.000908235845  0.000416025898
  929.187317  0.000884860696  0.000398346572
  942.139648  0.000861115637  0.000381471997
  955.272583  0.000837016851  0.000365312997
  968.588562  0.0008126506  0.000349864364
  982.09021  0.000788026489  0.000335071731
  995.779968  0.000763166114  0.000320897641
  1009.66058  0.000738043571  0.000307307928
  1023.7348  0.000712442736  0.000294224359
  1038.005  0.000686334679  0.000281621207
  1052.47424  0.000659559912  0.000269500772
  1067.14514  0.000631882984  0.000257855485
  1082.02051  0.000602860004  0.000246714015
  1097.10339  0.000571798417  0.000236057283
  1112.39636  0.000538124412  0.00022586358
  1127.90259  0.000500418304  0.000216113171
  1143.62488  0.000456013688  0.000206787488
  1159.56641  0.000396362011  0.000197866029
  1175.73022  0.000280910259  0.000189330443
  1192.11926 -0.000138476244  0.000555180653
  1208.73682  0.000335037446  0.000529825047
  1225.58594  0.000411344081  0.000505629287
  1242.66992  0.000448010804  0.00048253659
  1259.99194  0.000469917752  0.000460494572
  1277.55554  0.000483570766  0.000439469324
  1295.36401  0.000491715909  0.000419399585
  1313.42078  0.000495914486  0.000400246936
  1331.72913  0.0004969117  0.000381968304
  1350.29272  0.000495700689  0.000364523527
  1369.11511  0.000492741587  0.000347873749
  1388.19983  0.000488341611  0.000331987918
  1407.55054  0.000482720701  0.000316824822
  1427.17102  0.000475938199  0.000302356202
  1447.06506  0.000468216371  0.000288549229
  1467.23621  0.000459552655  0.000275351806
  1487.68884  0.000449798099  0.000262732297
  1508.42639  0.000438254327  0.000250607613
  1529.453  0.000419083954  0.000238997309
  1550.77271  0.000388933695  0.000256977044
  1572.38977  0.00041294971  0.000245468138
  1594.30786  0.000410047855  0.000234473642
  1616.53174  0.000404154736  0.000223973009
  1639.06531  0.000395723124  0.000214319312
  1661.91296  0.000386641157  0.000208453683
  1685.0791  0.000381752936  0.000205767443
  1708.56824  0.000378961995  0.000197176778
  1732.38477  0.000373622315  0.000188138103
  1756.53333  0.000367359986  0.000179502444
  1781.01831  0.000360595586  0.000171258405
  1805.84485  0.000353453157  0.000163386911
  1831.01721  0.000345955108  0.000155878777
  1856.54065  0.000337625301  0.000148715422
  1882.41992  0.000322704378  0.000147262544
  1908.65979  0.000324139692  0.000140511605
  1935.2655  0.000318412407  0.000134069691
  1962.24194  0.000312102056  0.000127923646
  1989.59473  0.000305569789  0.000122061429
  2017.32861  0.000298991654  0.000116487812
  2045.44897  0.000292429031  0.00011115129
  2073.96143  0.000285878457  0.000106033527
  2102.87134  0.000279355969  0.000101146201
  2132.18433  0.000272882666  9.64798601E-05
  2161.90576  0.000266479416  9.20239399E-05
  2192.0415  0.000260154426  8.77700804E-05
  2222.59741  0.000253916514  8.37100015E-05
  2253.57935  0.000247766933  7.98338151E-05
  2284.99292  0.000241712361  7.61342017E-05
  2316.84448  0.000235759406  7.26027938E-05
  2349.13989  0.000229909609  6.92339308E-05
  2381.8855  0.000224169591  6.60204241E-05
  2415.08789  0.000218534493  6.29505885E-05
  2448.75293  0.000213005813  6.00227759E-05
  2482.88721  0.000207588819  5.72287936E-05
  2517.49707  0.000202281808  5.45639305E-05
  2552.58984  0.000197087036  5.20204194E-05
  2588.17163  0.000191998595  4.95945606E-05
  2624.24927  0.000187020225  4.72793654E-05
  2660.82983  0.000182151212  4.50725674E-05
  2697.92041  0.000177392169  4.2968466E-05
  2735.52783  0.000172741362  4.09596178E-05
  2773.65967  0.000168193728  3.9042854E-05
  2812.323  0.000163751567  3.72158574E-05
  2851.52539  0.000159413321  3.54732183E-05
  2891.27393  0.000155177448  3.38120008E-05
  2931.57666  0.000151043103  3.22281558E-05
  2972.44141  0.000147007479  3.07168084E-05
  3013.87549  0.000143069235  2.92756595E-05
  3055.88745  0.000139227341  2.79018932E-05
  3098.48486  0.000135480324  2.65916333E-05
  3141.67603  0.000131825582  2.53423605E-05
  3185.46924  0.000128261003  2.41505877E-05
  3229.8728  0.000124785278  2.30155929E-05
  3274.89575  0.000121398232  2.1933387E-05
  3320.54614  0.000118096876  2.09006794E-05
  3366.83252  0.00011487861  1.99169663E-05
  3413.7644  0.000111742578  1.89781949E-05
  3461.35059  0.000108686661  1.80839743E-05
  3509.59961  0.000105709747  1.72315013E-05
  3558.52148  0.000102809805  1.64189496E-05
  3608.12549  9.99845652E-05  1.56441656E-05
  3658.4209  9.72326598E-05  1.49056887E-05
  3709.41724  9.45528082E-05  1.42018098E-05
  3761.12451  9.19430531E-05  1.35308146E-05
  3813.55249  8.94016266E-05  1.28912889E-05
  3866.71143  8.69267024E-05  1.22817601E-05
  3920.61133  8.45170434E-05  1.17008449E-05
  3975.26221  8.21712456E-05  1.11471236E-05
  4030.67554  7.9887388E-05  1.06193384E-05
  4086.86084  7.76639354E-05  1.01162886E-05
  4143.82959  7.54993816E-05  9.63690309E-06
  4201.59229  7.33922789E-05  9.17990747E-06
  4260.16016  7.1341201E-05  8.74447051E-06
  4319.54443  6.93448383E-05  8.32954083E-06
  4379.75635  6.74015391E-05  7.9340889E-06
  4440.80811  6.55099575E-05  7.55716474E-06
  4502.71045  6.36687691E-05  7.19800073E-06
  4565.47559  6.18767299E-05  6.85570194E-06
  4629.11572  6.01325701E-05  6.52955669E-06
  4693.64355  5.84346526E-05  6.21874233E-06
  4759.07031  5.67819734E-05  5.92254173E-06
  4825.40918  5.51733137E-05  5.64027005E-06
  4892.67285  5.36074476E-05  5.37134429E-06
  4960.87402  5.20831018E-05  5.1150796E-06
  5030.02588  5.05989192E-05  4.8708248E-06
  5100.14209  4.91538885E-05  4.63813967E-06
  5171.23486  4.77469548E-05  4.41638394E-06
  5243.31885  4.63769866E-05  4.20514607E-06
  5316.4082  4.50427578E-05  4.00392264E-06
  5390.51611  4.37429517E-05  3.81215659E-06
  5465.65723  4.24766513E-05  3.62940318E-06
  5541.84521  4.12427253E-05  3.45531703E-06
  5619.09521  4.00401877E-05  3.28937608E-06
  5697.42285  3.88674671E-05  3.13132841E-06
  5776.8418  3.7723421E-05  2.98074428E-06
  5857.36768  3.66072127E-05  2.83731811E-06
  5939.01611  3.5517558E-05  2.70064152E-06
  6021.80273  3.44528489E-05  2.57046031E-06
  6105.74316  3.34110409E-05  2.44645389E-06
  6190.85449  3.23908134E-05  2.32830075E-06
  6277.15186  3.13905366E-05  2.21573509E-06
  6364.65137  3.04080713E-05  2.10851886E-06
  6453.37158  2.944066E-05  2.00638033E-06
  6543.32812  2.84828857E-05  1.90906576E-06
  6634.53809  2.75301682E-05  1.81638609E-06
  6727.02051  2.65727886E-05  1.72807302E-06
  6820.7915  2.55971827E-05  1.64397477E-06
  6915.86914  2.45716037E-05  1.56390445E-06
  7012.27295  2.33589308E-05  1.48760591E-06
  7110.02002  2.02590691E-05  1.4149748E-06
  7209.12988  2.01431412E-05  2.31998524E-06
  7309.62109  2.04299395E-05  4.30946966E-06
  7411.51318  2.11806091E-05  4.09064387E-06
  7514.82617  2.09531936E-05  3.88280796E-06
  7619.57861  2.05802626E-05  3.68538485E-06
  7725.79102  2.01054681E-05  3.4978882E-06
  7833.48438  1.95032371E-05  3.31986985E-06
  7942.67969  1.82173699E-05  4.08804453E-06
  8053.396  1.87599708E-05  3.87562386E-06
  8165.65625  1.84986711E-05  3.67411508E-06
  8279.48047  1.80950083E-05  3.48295475E-06
  8394.89258  1.74351062E-05  3.69109284E-06
  8511.91211  1.74462857E-05  3.51702261E-06
  8630.56348  1.71520624E-05  3.35087225E-06
  8750.86914  1.68220758E-05  3.19224796E-06
  8872.85156  1.64762259E-05  3.04078844E-06
  8996.53418  1.61224652E-05  2.89613422E-06
  9121.94141  1.57641553E-05  2.75800312E-06
  9249.0957  1.54053723E-05  2.62621256E-06
  9378.02344  1.504799E-05  2.50050175E-06
  9508.74805  1.46932916E-05  2.3805917E-06
  9641.29492  1.43421285E-05  2.26618818E-06
  9775.68848  1.3994837E-05  2.15706018E-06
  9911.95703  1.36524814E-05  2.05301103E-06
  10050.125  1.33153844E-05  1.95376401E-06
  10190.2178  1.29839264E-05  1.85917702E-06
  10332.2637  1.26582554E-05  1.7690121E-06
  10476.29  1.23384843E-05  1.68305485E-06
  10622.3232  1.20249124E-05  1.60116713E-06
  10770.3926  1.17176378E-05  1.52314431E-06
  10920.5264  1.14167078E-05  1.44882551E-06
  11072.7529  1.11220288E-05  1.3780076E-06
  11227.1006  1.08336599E-05  1.31055651E-06
  11383.6006  1.05516665E-05  1.24632049E-06
  11542.2822  1.02760214E-05  1.18515425E-06
  11703.1748  1.00066636E-05  1.12692237E-06
  11866.3105  9.74345039E-06  1.07147048E-06
  12031.7207  9.48639808E-06  1.01867852E-06
  12199.4365  9.23542939E-06  9.68436325E-07
  12369.4902  8.9904679E-06  9.20609068E-07
  12541.9141  8.75142905E-06  8.75102103E-07
  12716.7412  8.51816912E-06  8.3179026E-07
  12894.0059  8.29063993E-06  7.90580373E-07
  13073.7412  8.0687505E-06  7.51370749E-07
  13255.9824  7.85240081E-06  7.14071916E-07
  13440.7637  7.64147899E-06  6.78587355E-07
  13628.1211  7.43584087E-06  6.4483379E-07
  13818.0889  7.23542644E-06  6.12729195E-07
  14010.7061  7.04013928E-06  5.82193252E-07
  14206.0068  6.84986344E-06  5.5315985E-07
  14404.0312  6.66447249E-06  5.25549297E-07
  14604.8164  6.48386504E-06  4.99293321E-07
  14808.3994  6.30796058E-06  4.74329966E-07
  15014.8203  6.13663269E-06  4.50595877E-07
  15224.1182  5.96978998E-06  4.28033843E-07
  15436.335  5.80732149E-06  4.06586423E-07
  15651.5098  5.64912125E-06  3.8619703E-07
  15869.6816  5.49510105E-06  3.66817062E-07
  16090.8965  5.34516403E-06  3.48398288E-07
  16315.1953  5.19920241E-06  3.30896825E-07
  16542.6191  5.05711296E-06  3.14259012E-07
  16773.2148  4.91881701E-06  2.9845117E-07
  17007.0254  4.78421771E-06  2.83427823E-07
  17244.0938  4.65322182E-06  2.69153674E-07
  17484.4668  4.52574432E-06  2.55590948E-07
  17728.1914  4.40168287E-06  2.42706591E-07
  17975.3125  4.28096473E-06  2.30464636E-07
  18225.8789  4.16350076E-06  2.18833677E-07
  18479.9375  4.04921047E-06  2.0778495E-07
  18737.5371  3.93801201E-06  1.9728914E-07
  18998.7285  3.82982125E-06  1.87320509E-07
  19263.5605  3.72456543E-06  1.77851405E-07
  19532.084  3.62216542E-06  1.68856928E-07
  19804.3516  3.5225471E-06  1.60314755E-07
  20080.4141  3.42563749E-06  1.52200201E-07
  20360.3223  3.33136859E-06  1.44494933E-07
  20644.1348  3.23967015E-06  1.37176215E-07
  20931.9023  3.15047532E-06  1.30226056E-07
  21223.6816  3.06371362E-06  1.23627174E-07
  21519.5293  2.97932411E-06  1.17359775E-07
  21819.5  2.8972388E-06  1.11409143E-07
  22123.6523  2.81739972E-06  1.05758538E-07
  22432.0449  2.73974729E-06  1.00393592E-07
  22744.7324  2.66422421E-06  9.5299292E-08
  23061.7832  2.59076842E-06  9.04628763E-08
  23383.252  2.51932647E-06  8.58708731E-08
  23709.2012  2.44984653E-06  8.15109829E-08
  24039.6953  2.38227312E-06  7.73722064E-08
  24374.7949  2.31655622E-06  7.34429619E-08
  24714.5664  2.25264353E-06  6.97125202E-08
  25059.0742  2.19048752E-06  6.61712392E-08
  25408.3848  2.13003932E-06  6.28097112E-08
  25762.5645  2.07125458E-06  5.96183369E-08
  26121.6797  2.01408648E-06  5.65894887E-08
  26485.8008  1.95848975E-06  5.37138973E-08
  26855.  1.90442313E-06  5.09845535E-08
  27229.3438  1.85184319E-06  4.8393872E-08
  27608.9062  1.80071243E-06  4.59346801E-08
  27993.7598  1.75098671E-06  4.36007426E-08
  28383.9766  1.70263149E-06  4.13852419E-08
  28779.6348  1.65560527E-06  3.92824404E-08
  29180.8066  1.60987452E-06  3.72867817E-08
  29587.5723  1.56540273E-06  3.53923291E-08
  30000.0059  1.52216501E-06  3.35945245E-08];
end

if(Material == 'CF') % density 8.9 g/cm^3
RefractiveData =[30.  0.372782201  0.275762886
  30.4181843  0.365227461  0.267416626
  30.8421955  0.357662797  0.259335071
  31.2721214  0.350120842  0.25149861
  31.7080383  0.342608988  0.24390009
  32.150032  0.33515954  0.23653169
  32.5981827  0.327842444  0.229387477
  33.0525818  0.320728123  0.222308457
  33.5133171  0.313632846  0.215259477
  33.9804764  0.306419075  0.208314493
  34.4541473  0.299187422  0.201567084
  34.9344177  0.291930944  0.195002764
  35.4213829  0.284657359  0.188634485
  35.9151382  0.277401268  0.182471856
  36.4157791  0.270168394  0.176510304
  36.9233932  0.262948394  0.170743838
  37.4380875  0.255753726  0.165218979
  37.9599533  0.248632178  0.159984186
  38.4890938  0.241641551  0.154924333
  39.0256119  0.234730586  0.150025114
  39.5696068  0.227905124  0.145281032
  40.1211853  0.221164405  0.140682578
  40.6804543  0.214517638  0.136215031
  41.2475166  0.207933828  0.131833598
  41.8224831  0.201361239  0.127519608
  42.405468  0.194781527  0.123351753
  42.9965744  0.188182637  0.119323358
  43.5959282  0.181575045  0.115427352
  44.2036324  0.174961224  0.111659415
  44.8198051  0.168327883  0.108014293
  45.4445686  0.161656573  0.104486324
  46.0780411  0.15492405  0.101071745
  46.7203445  0.14810355  0.0977703109
  47.3715973  0.141130239  0.0945831761
  48.0319328  0.133922189  0.0915007517
  48.7014732  0.126449004  0.0885194689
  49.3803444  0.118608825  0.0856322795
  50.0686798  0.110216945  0.0828111842
  50.7666092  0.100983076  0.0800926089
  51.4742699  0.0904926658  0.077645652
  52.1917915  0.0781062767  0.075828664
  52.9193192  0.0594549812  0.074480474
  53.6569862  0.0334722549  0.0878076404
  54.4049339  0.0288458616  0.115910761
  55.163311  0.0382317193  0.13858588
  55.9322586  0.0482014231  0.141030565
  56.7119217  0.0530674867  0.142643392
  57.5024567  0.0523333475  0.14570801
  58.3040123  0.0548308566  0.152347833
  59.1167336  0.0588029847  0.157411784
  59.9407921  0.0654095411  0.163796157
  60.7763329  0.0764619559  0.167109936
  61.6235237  0.0884924233  0.16520527
  62.4825172  0.0972734541  0.159931868
  63.3534927  0.103999518  0.152395085
  64.2366028  0.107680827  0.144408181
  65.1320343  0.109392576  0.136960194
  66.0399323  0.110036872  0.130011424
  66.960495  0.109663382  0.123491533
  67.8938904  0.108642355  0.117803633
  68.8402939  0.107413918  0.112967193
  69.7998886  0.106137186  0.108339064
  70.7728577  0.104612686  0.103974164
  71.7593994  0.103008136  0.0999280363
  72.7596817  0.101288825  0.0960452408
  73.7739182  0.0994103476  0.0923131704
  74.8022842  0.0972691402  0.088816531
  75.844986  0.0949246362  0.0856561661
  76.9022217  0.0926033929  0.0829184353
  77.9741974  0.0904472545  0.080691956
  79.0611115  0.0885554105  0.0785250291
  80.1631851  0.0867723823  0.076416783
  81.2806168  0.0850647911  0.0743649676
  82.4136276  0.0834130421  0.0723681822
  83.5624237  0.0818049982  0.0704252794
  84.7272415  0.0802324712  0.0685349479
  85.9082947  0.0786897093  0.0666958764
  87.1058121  0.0771704093  0.0649065673
  88.320015  0.0756623968  0.0631669462
  89.5511475  0.0741654336  0.0614930391
  90.7994385  0.0726910308  0.0599024706
  92.0651398  0.0712605268  0.0583838597
  93.3484802  0.0698842406  0.0569141246
  94.649704  0.0685490966  0.0554817431
  95.9690704  0.0672503337  0.0540858731
  97.3068314  0.0659860596  0.0527254269
  98.6632385  0.0647543371  0.0513995811
  100.038544  0.0635554269  0.0501066372
  101.433029  0.062391188  0.048845537
  102.846954  0.0612710901  0.0476095565
  104.280579  0.0601980276  0.0463806838
  105.734192  0.0591209456  0.0451243594
  107.208076  0.0580365174  0.0438954309
  108.702492  0.0569546223  0.0426997207
  110.217751  0.0558820926  0.0415374078
  111.754128  0.0548224673  0.04040749
  113.311913  0.0537776351  0.0393085852
  114.891418  0.0527485348  0.038239304
  116.492943  0.0517351963  0.0371983759
  118.116798  0.0507388189  0.0361857824
  119.763275  0.0497602448  0.0352010317
  121.432716  0.0488013439  0.0342434198
  123.125427  0.0478663854  0.033312168
  124.841721  0.0469583273  0.0323957875
  126.581955  0.0460641794  0.0314870141
  128.346436  0.0451560989  0.0306007452
  130.135513  0.0443069488  0.0297629014
  131.949539  0.0434630476  0.0288840178
  133.788834  0.0426137  0.028025182
  135.653778  0.0417639054  0.0271919034
  137.544724  0.0409193225  0.026383521
  139.462021  0.0400834195  0.0255993251
  141.406052  0.0392578095  0.0248386227
  143.377167  0.0384437926  0.0241006836
  145.375778  0.0376439206  0.0233847424
  147.402222  0.0368640795  0.0226826444
  149.45694  0.0360893309  0.0219905749
  151.540268  0.0353180431  0.0213143006
  153.652664  0.0345532373  0.0206583384
  155.794495  0.033797197  0.0200222321
  157.966202  0.0330525488  0.0194053818
  160.168167  0.0323132388  0.018795101
  162.400818  0.0315794051  0.0181994513
  164.664597  0.0308435131  0.0176172033
  166.95993  0.0301050805  0.0170515198
  169.287262  0.0293639246  0.0165041406
  171.647034  0.028618075  0.0159746762
  174.039703  0.0278639924  0.0154625755
  176.465729  0.0270885769  0.0149673475
  178.925552  0.0262747314  0.0144880889
  181.419678  0.0253870934  0.0140241878
  183.948563  0.0243104398  0.0135749532
  186.512726  0.0218909327  0.0131394258
  189.112595  0.0216777083  0.0160668511
  191.748734  0.0230727177  0.0155021399
  194.4216  0.0232097693  0.0149183366
  197.131729  0.0231016073  0.0143583762
  199.879639  0.0228875428  0.0138208019
  202.665863  0.0226098914  0.0133037148
  205.490906  0.0222919974  0.0128057972
  208.355347  0.0219480656  0.0123260943
  211.259705  0.0215868782  0.0118623665
  214.204544  0.0212112181  0.0114071816
  217.190445  0.0208184067  0.0109680519
  220.217957  0.0204157736  0.0105451327
  223.287674  0.0200032201  0.0101389587
  226.400192  0.0195881948  0.0097575346
  229.556091  0.0191770997  0.00939879566
  232.755981  0.0187721569  0.00905339047
  236.000458  0.0183731467  0.00872085616
  239.290176  0.0179794636  0.00839950237
  242.625763  0.017590031  0.00808890536
  246.007828  0.0172053203  0.00778897852
  249.437057  0.0168255363  0.0074999365
  252.914062  0.0164511055  0.00722171785
  256.439545  0.0160825625  0.00695395423
  260.01416  0.0157203358  0.0066962014
  263.638641  0.0153647885  0.00644812174
  267.313599  0.0150170755  0.00620934786
  271.039825  0.0146771623  0.00597820571
  274.817963  0.0143493097  0.00575241912
  278.648773  0.0140276505  0.00552779343
  282.53299  0.0137057099  0.00530505693
  286.471375  0.0133841671  0.00509097474
  290.4646  0.0130661484  0.00488552824
  294.513519  0.0127524985  0.00468842406
  298.618896  0.0124439625  0.00449898094
  302.781494  0.0121408151  0.00431690039
  307.002106  0.0118429651  0.00414188532
  311.281525  0.0115504144  0.00397377275
  315.620605  0.011263391  0.00381247676
  320.020203  0.0109821036  0.00365776801
  324.48111  0.0107068121  0.00350939715
  329.004181  0.0104377251  0.0033667027
  333.590363  0.0101769678  0.00322961924
  338.240417  0.00992181897  0.00309375091
  342.955322  0.00966970157  0.00295990263
  347.735901  0.00942014717  0.00283175032
  352.58316  0.00917454064  0.00270916405
  357.497986  0.00893323589  0.00259189983
  362.481323  0.00869635399  0.00247936929
  367.534119  0.0084639499  0.00237162807
  372.657349  0.0082360059  0.00226853811
  377.85199  0.00801200885  0.00216993294
  383.119019  0.00779195735  0.00207649008
  388.459473  0.0075771613  0.00198953366
  393.87439  0.00736948336  0.00190707017
  399.364807  0.00716829114  0.00182662962
  404.931732  0.00697093597  0.0017480352
  410.576233  0.00677747326  0.00167243357
  416.299469  0.0065880944  0.00160004431
  422.102448  0.00640288135  0.00153071166
  427.986359  0.00622181036  0.0014643349
  433.95224  0.00604476174  0.0014007471
  440.001282  0.00587152038  0.0013399265
  446.134674  0.00570230512  0.00128172396
  452.353577  0.00553695951  0.00122592109
  458.659119  0.00537533732  0.0011724506
  465.052582  0.00521733332  0.00112126186
  471.535156  0.0050628935  0.00107228605
  478.108093  0.00491198758  0.00102545053
  484.772644  0.00476429053  0.000980476267
  491.530151  0.00461978  0.000937400677
  498.381775  0.00447835913  0.000896167068
  505.328979  0.00433994597  0.000856735453
  512.372986  0.00420445809  0.000819047855
  519.515198  0.00407180004  0.000783032505
  526.756958  0.00394189497  0.000748628459
  534.09967  0.00381448353  0.000715789385
  541.544739  0.00368946511  0.000684418541
  549.093506  0.00356684835  0.000654432864
  556.74762  0.00344646047  0.000625685381
  564.508362  0.003328074  0.000598129292
  572.377319  0.00321147777  0.000571778917
  580.355957  0.00309651438  0.000546640251
  588.445801  0.00298283319  0.000522628368
  596.648438  0.00286980136  0.000500052061
  604.965332  0.00275783567  0.000478657457
  613.398315  0.00264656101  0.000458229013
  621.948669  0.00253548124  0.000438665331
  630.618347  0.00242394628  0.000419802818
  639.408813  0.00231109071  0.000401423196
  648.321838  0.00219568703  0.000383426377
  657.35907  0.0020735492  0.000365922839
  666.522278  0.00194255542  0.000349224603
  675.813293  0.00179686793  0.000333806209
  685.233704  0.00162294542  0.000319586048
  694.785522  0.0013659898  0.000306279457
  704.470398  0.000556381361  0.000293561461
  714.290344  0.0011772922  0.00113450119
  724.247192  0.00134775054  0.00108288962
  734.342834  0.00139562751  0.00103362999
  744.579163  0.00138590205  0.000986619969
  754.958191  0.00132763339  0.000941761711
  765.481934  0.00118054112  0.000898953003
  776.152344  0.000483906566  0.000858156069
  786.971436  0.0011611809  0.00150745781
  797.941406  0.00133884291  0.00144188886
  809.06427  0.00142158114  0.00139241433
  820.342224  0.00147323846  0.00134555146
  831.777283  0.00150767318  0.00130040222
  843.371826  0.00153200724  0.00125691388
  855.127991  0.00155038142  0.00121248967
  867.047974  0.00156368606  0.0011631333
  879.134155  0.00156674709  0.00110996084
  891.388855  0.00155483722  0.00105883135
  903.814331  0.00153563591  0.00101719156
  916.413025  0.00151816977  0.00098486105
  929.187317  0.00150536303  0.000956945354
  942.139648  0.00149742002  0.000927055662
  955.272583  0.00149167702  0.000890901661
  968.588562  0.00148069824  0.000849589822
  982.09021  0.00146287109  0.000810196972
  995.779968  0.00144275138  0.000772694242
  1009.66058  0.00142077578  0.000736984832
  1023.7348  0.00139761902  0.000703304133
  1038.005  0.00137381407  0.000671350979
  1052.47424  0.0013495537  0.000640669721
  1067.14514  0.00132471963  0.000611217576
  1082.02051  0.00129934261  0.000583118643
  1097.10339  0.00127366092  0.000556312094
  1112.39636  0.00124785129  0.000530738384
  1127.90259  0.00122199825  0.000506338023
  1143.62488  0.00119617127  0.000483061885
  1159.56641  0.00117043662  0.000460858748
  1175.73022  0.0011448568  0.000439673575
  1192.11926  0.00111946522  0.000419461401
  1208.73682  0.00109427713  0.000400178455
  1225.58594  0.00106942339  0.000381782709
  1242.66992  0.0010448976  0.000364171603
  1259.99194  0.00102070719  0.000347293215
  1277.55554  0.000996832852  0.000331107789
  1295.36401  0.000973237853  0.000315598649
  1313.42078  0.000949931447  0.00030081888
  1331.72913  0.000926952052  0.000286731462
  1350.29272  0.000904350134  0.000273301179
  1369.11511  0.000882140477  0.000260499626
  1388.19983  0.000860333676  0.000248298835
  1407.55054  0.000838938751  0.000236670749
  1427.17102  0.000817964436  0.00022558737
  1447.06506  0.000797421497  0.000215020991
  1467.23621  0.000777298876  0.000204936296
  1487.68884  0.000757626782  0.000195302142
  1508.42639  0.0007383583  0.000186047517
  1529.453  0.00071946322  0.000177200418
  1550.77271  0.000700946432  0.000168769126
  1572.38977  0.000682823011  0.00016073916
  1594.30786  0.000665096974  0.000153091663
  1616.53174  0.000647765817  0.000145807848
  1639.06531  0.000630824303  0.000138870062
  1661.91296  0.00061428122  0.000132263682
  1685.0791  0.000598134589  0.000125971797
  1708.56824  0.000582391105  0.000119978678
  1732.38477  0.000567042269  0.000114245784
  1756.53333  0.000552059093  0.000108731103
  1781.01831  0.000537418062  0.000103461694
  1805.84485  0.000523093273  9.8429744E-05
  1831.01721  0.000509105856  9.3642484E-05
  1856.54065  0.000495454413  8.90882511E-05
  1882.41992  0.000482136616  8.47554111E-05
  1908.65979  0.00046914813  8.06332246E-05
  1935.2655  0.000456484151  7.67118108E-05
  1962.24194  0.000444141449  7.29814492E-05
  1989.59473  0.00043210038  6.94326445E-05
  2017.32861  0.000420390075  6.60797887E-05
  2045.44897  0.000408990367  6.28539347E-05
  2073.96143  0.000397879397  5.97696562E-05
  2102.87134  0.000387047039  5.68326941E-05
  2132.18433  0.000376490207  5.40355431E-05
  2161.90576  0.000366204535  5.13737032E-05
  2192.0415  0.000356185046  4.88408587E-05
  2222.59741  0.000346425601  4.64295517E-05
  2253.57935  0.000336921483  4.41348748E-05
  2284.99292  0.000327667396  4.195152E-05
  2316.84448  0.000318657025  3.98735792E-05
  2349.13989  0.000309884548  3.78965051E-05
  2381.8855  0.000301344815  3.60166014E-05
  2415.08789  0.000293032121  3.42272433E-05
  2448.75293  0.000284940645  3.25263572E-05
  2482.88721  0.000277066167  3.0907835E-05
  2517.49707  0.000269402779  2.93686971E-05
  2552.58984  0.000261945359  2.79051055E-05
  2588.17163  0.000254689076  2.65133694E-05
  2624.24927  0.000247628719  2.51900783E-05
  2660.82983  0.000240759633  2.3931856E-05
  2697.92041  0.000234076389  2.27355777E-05
  2735.52783  0.000227574681  2.15983182E-05
  2773.65967  0.000221249662  2.05172637E-05
  2812.323  0.000215097418  1.94897366E-05
  2851.52539  0.000209113379  1.85130684E-05
  2891.27393  0.000203292831  1.75847053E-05
  2931.57666  0.000197631365  1.67024682E-05
  2972.44141  0.000192125095  1.58638668E-05
  3013.87549  0.00018676983  1.50670867E-05
  3055.88745  0.000181561729  1.43099123E-05
  3098.48486  0.000176496993  1.3590361E-05
  3141.67603  0.000171571839  1.29066821E-05
  3185.46924  0.00016678244  1.2257181E-05
  3229.8728  0.000162125099  1.1640137E-05
  3274.89575  0.000157596063  1.10538804E-05
  3320.54614  0.000153192057  1.04968776E-05
  3366.83252  0.000148909981  9.96776089E-06
  3413.7644  0.000144746489  9.46512864E-06
  3461.35059  0.000140698088  8.98767394E-06
  3509.59961  0.000136761751  8.53419078E-06
  3558.52148  0.000132934583  8.10348138E-06
  3608.12549  0.000129213353  7.6943852E-06
  3658.4209  0.000125594946  7.30577358E-06
  3709.41724  0.000122077225  6.93676384E-06
  3761.12451  0.000118657037  6.58625504E-06
  3813.55249  0.000115331612  6.25337861E-06
  3866.71143  0.000112098402  5.93728328E-06
  3920.61133  0.000108954941  5.637095E-06
  3975.26221  0.000105898704  5.35205982E-06
  4030.67554  0.000102927064  5.0813951E-06
  4086.86084  0.000100038007  4.82441101E-06
  4143.82959  9.72290291E-05  4.58033264E-06
  4201.59229  9.44978528E-05  4.34859612E-06
  4260.16016  9.18423539E-05  4.12858753E-06
  4319.54443  8.92605021E-05  3.91966933E-06
  4379.75635  8.67501731E-05  3.72127124E-06
  4440.80811  8.4309082E-05  3.53298128E-06
  4502.71045  8.19355118E-05  3.35419122E-06
  4565.47559  7.96275126E-05  3.18444336E-06
  4629.11572  7.73832217E-05  3.02328954E-06
  4693.64355  7.52007472E-05  2.8702957E-06
  4759.07031  7.30783868E-05  2.72504803E-06
  4825.40918  7.10145032E-05  2.5871359E-06
  4892.67285  6.90073575E-05  2.45623687E-06
  4960.87402  6.70548106E-05  2.33189985E-06
  5030.02588  6.51557566E-05  2.21396067E-06
  5100.14209  6.33085219E-05  2.10196845E-06
  5171.23486  6.15116151E-05  1.99563146E-06
  5243.31885  5.97635117E-05  1.89469824E-06
  5316.4082  5.80626438E-05  1.79889389E-06
  5390.51611  5.64075599E-05  1.70793396E-06
  5465.65723  5.47964883E-05  1.62162246E-06
  5541.84521  5.32281701E-05  1.53965186E-06
  5619.09521  5.17013941E-05  1.46185027E-06
  5697.42285  5.02146104E-05  1.38797873E-06
  5776.8418  4.87664147E-05  1.31785509E-06
  5857.36768  4.7355461E-05  1.25131942E-06
  5939.01611  4.59802868E-05  1.18814648E-06
  6021.80273  4.46386985E-05  1.12817793E-06
  6105.74316  4.33288878E-05  1.07125425E-06
  6190.85449  4.20495235E-05  1.01722014E-06
  6277.15186  4.07986299E-05  9.65929303E-07
  6364.65137  3.95738898E-05  9.17238822E-07
  6453.37158  3.837248E-05  8.71014606E-07
  6543.32812  3.71909991E-05  8.27142117E-07
  6634.53809  3.60231788E-05  7.8549175E-07
  6727.02051  3.48566682E-05  7.45956299E-07
  6820.7915  3.36774901E-05  7.08427194E-07
  6915.86914  3.24457142E-05  6.72801377E-07
  7012.27295  3.09686257E-05  6.38981589E-07
  7110.02002  2.6127047E-05  6.06877279E-07
  7209.12988  2.93125049E-05  2.45047795E-06
  7309.62109  2.88821175E-05  2.33516676E-06
  7411.51318  2.81966295E-05  2.22491849E-06
  7514.82617  2.73846781E-05  2.11954625E-06
  7619.57861  2.62764606E-05  2.01894113E-06
  7725.79102  2.30018904E-05  3.55023599E-06
  7833.48438  2.53830804E-05  3.38321661E-06
  7942.67969  2.51372949E-05  3.22377105E-06
  8053.396  2.47267999E-05  3.07138862E-06
  8165.65625  2.42511069E-05  2.92572167E-06
  8279.48047  2.37485256E-05  2.78653829E-06
  8394.89258  2.32327566E-05  2.65367726E-06
  8511.91211  2.27108394E-05  2.52678296E-06
  8630.56348  2.21873561E-05  2.40563281E-06
  8750.86914  2.16654462E-05  2.29003194E-06
  8872.85156  2.11473434E-05  2.17969705E-06
  8996.53418  2.06342174E-05  2.0744676E-06
  9121.94141  2.01274033E-05  1.97402369E-06
  9249.0957  1.96282454E-05  1.87823434E-06
  9378.02344  1.91373947E-05  1.78690664E-06
  9508.74805  1.86552861E-05  1.69984423E-06
  9641.29492  1.81821906E-05  1.61684795E-06
  9775.68848  1.77183283E-05  1.53773249E-06
  9911.95703  1.72638192E-05  1.46240166E-06
  10050.125  1.68185779E-05  1.39054862E-06
  10190.2178  1.63829409E-05  1.32211403E-06
  10332.2637  1.5956919E-05  1.25692588E-06
  10476.29  1.55404759E-05  1.19484309E-06
  10622.3232  1.51335407E-05  1.1357298E-06
  10770.3926  1.47360324E-05  1.07944618E-06
  10920.5264  1.43478574E-05  1.02586716E-06
  11072.7529  1.39687618E-05  9.74855425E-07
  11227.1006  1.35987566E-05  9.2629756E-07
  11383.6006  1.32377518E-05  8.8008818E-07
  11542.2822  1.28855872E-05  8.36122808E-07
  11703.1748  1.25421093E-05  7.94298273E-07
  11866.3105  1.22071588E-05  7.54510211E-07
  12031.7207  1.18805947E-05  7.16659031E-07
  12199.4365  1.15622015E-05  6.80660605E-07
  12369.4902  1.12518464E-05  6.46414378E-07
  12541.9141  1.09493967E-05  6.1385407E-07
  12716.7412  1.0654684E-05  5.82896575E-07
  12894.0059  1.03675411E-05  5.53467373E-07
  13073.7412  1.00878078E-05  5.25491032E-07
  13255.9824  9.81531957E-06  4.98892177E-07
  13440.7637  9.54989173E-06  4.7361533E-07
  13628.1211  9.29136786E-06  4.49584689E-07
  13818.0889  9.03960881E-06  4.26753616E-07
  14010.7061  8.79447271E-06  4.05056682E-07
  14206.0068  8.55579037E-06  3.84442416E-07
  14404.0312  8.32339265E-06  3.64858863E-07
  14604.8164  8.09715038E-06  3.46252364E-07
  14808.3994  7.8769117E-06  3.28582558E-07
  15014.8203  7.66249559E-06  3.11791524E-07
  15224.1182  7.45378611E-06  2.95844586E-07
  15436.335  7.25065047E-06  2.80698742E-07
  15651.5098  7.05294678E-06  2.66315766E-07
  15869.6816  6.86054182E-06  2.52658651E-07
  16090.8965  6.67329778E-06  2.39692099E-07
  16315.1953  6.49106914E-06  2.27382046E-07
  16542.6191  6.31373769E-06  2.15691315E-07
  16773.2148  6.14118653E-06  2.04594485E-07
  17007.0254  5.97329245E-06  1.94059396E-07
  17244.0938  5.80993128E-06  1.84059331E-07
  17484.4668  5.65098208E-06  1.7456918E-07
  17728.1914  5.49633296E-06  1.6556244E-07
  17975.3125  5.34588253E-06  1.57013162E-07
  18225.8789  5.19950117E-06  1.48900824E-07
  18479.9375  5.0570934E-06  1.41201824E-07
  18737.5371  4.91855053E-06  1.33895895E-07
  18998.7285  4.7837766E-06  1.26964238E-07
  19263.5605  4.65267203E-06  1.20387512E-07
  19532.084  4.5251345E-06  1.14148158E-07
  19804.3516  4.40106351E-06  1.08229656E-07
  20080.4141  4.28038402E-06  1.02613924E-07
  20360.3223  4.16299645E-06  9.72861756E-08
  20644.1348  4.04881212E-06  9.22319572E-08
  20931.9023  3.93774508E-06  8.74382593E-08
  21223.6816  3.82971393E-06  8.28919227E-08
  21519.5293  3.72463501E-06  7.85800083E-08
  21819.5  3.6224269E-06  7.44907567E-08
  22123.6523  3.52301481E-06  7.06125505E-08
  22432.0449  3.42632597E-06  6.69344118E-08
  22744.7324  3.33228354E-06  6.34466062E-08
  23061.7832  3.24081611E-06  6.01395129E-08
  23383.252  3.15185366E-06  5.70037599E-08
  23709.2012  3.06532888E-06  5.40305649E-08
  24039.6953  2.98117857E-06  5.12116358E-08
  24374.7949  2.8993345E-06  4.85390039E-08
  24714.5664  2.8197378E-06  4.60051801E-08
  25059.0742  2.74232275E-06  4.36031655E-08
  25408.3848  2.6670325E-06  4.13258547E-08
  25762.5645  2.59380909E-06  3.91670696E-08
  26121.6797  2.52259474E-06  3.71207385E-08
  26485.8008  2.45333467E-06  3.51809604E-08
  26855.  2.38597772E-06  3.33425767E-08
  27229.3438  2.32046773E-06  3.15999955E-08
  27608.9062  2.25676195E-06  2.99482643E-08
  27993.7598  2.1948033E-06  2.83827664E-08
  28383.9766  2.134547E-06  2.68991425E-08
  28779.6348  2.07594758E-06  2.54930761E-08
  29180.8066  2.01896887E-06  2.41605385E-08
  29587.5723  1.96355018E-06  2.28977335E-08
  30000.0059  1.90952255E-06  2.17010871E-08];

end

z = abs(Energy-RefractiveData(:,1)); 
pos = find(min(z)==z);

if (Energy >= RefractiveData(pos,1))
    delta = RefractiveData(pos,2)+(Energy-RefractiveData(pos,1))*(RefractiveData(pos+1,2)-RefractiveData(pos,2))/(RefractiveData(pos+1,1)-RefractiveData(pos,1));
    beta =  RefractiveData(pos,3)+(Energy-RefractiveData(pos,1))*(RefractiveData(pos+1,3)-RefractiveData(pos,3))/(RefractiveData(pos+1,1)-RefractiveData(pos,1));
end

if (Energy < RefractiveData(pos,1))
    delta = RefractiveData(pos-1,2)+(Energy-RefractiveData(pos-1,1))*(RefractiveData(pos,2)-RefractiveData(pos-1,2))/(RefractiveData(pos,1)-RefractiveData(pos-1,1));
    beta =  RefractiveData(pos-1,3)+(Energy-RefractiveData(pos-1,1))*(RefractiveData(pos,3)-RefractiveData(pos-1,3))/(RefractiveData(pos,1)-RefractiveData(pos-1,1));
end

n = delta+i*beta;
    


